XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
- Stylus Studio Technical Forum (14621)
-> + startup fault (2)
-> + xsd sequence question (5)
-> + Licence authentication failed ... (3)
-> + .NET API for the X12 To XML Ad... (6)
-> + data in tabular format (2)
-> + How to convert the xml String ... (4)
-> + SS Schema Validation misses an... (2)
-> + Problem in converting EDI file... (2)
-> + Generating image from XML and ... (2)
-> + Auto Schema builder is not cre... (3)
-> + XML/SQL update more tables (2)
-> + Default toolbar blocked (3)
-> + Stylus vs Altova Mapforce - St... (4)
-> + Problem with namespace while v... (3)
-> - Web Service Call - "unqualifie... (3)
-> ->Web Service Call -
-> ->Web Service Call - "unqua...
-> + XML to SQL Server 2005 (2)
-> + XHTML with multiple schemas (2)
-> + Compare Stylus Studio with OBO... (2)
-> + Deploying java app using deplo... (3)
-> + Validating XML through Schema (3)
-- Previous [1981-2000] [2001-2020] [2021-2040] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
Tom KSubject: Web Service Call - "unqualified" ignored?
Author: Tom K
Date: 13 Sep 2006 02:29 PM
I've a WSDL (that I cannot modify) that I'm importing into Stylus to generate some test webservice calls.

The template SOAP call generated from the WSDL is incorrect.

The following is the relevant WSDL snippit:
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://x.y.z" xmlns:s1="http://a.b.c" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="x.y.z" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="x.y.z">
<s:element name="Root">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" form="unqualified" name="test">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" form="unqualified" name="myTest" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
...etc.


The generated template is:
<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:Root xmlns:tns="x.y.z">
<tns:test>
<tns:myTest>1234</tns:myTest>
</tns:test>
</tns:Root>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

This is incorrect, and is rejected by the webservice. Since "test" and "myTest" are defined as form="unqualified", there should be no qualifier specified.

The following is accepted OK:
<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:Root xmlns:tns="x.y.z">
<test>
<myTest>12345</myTest>
</test>
</tns:Root>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


...is this a known problem? Am I missing something obvious?

Thanks much.
TomK

Postnext
Ivan PedruzziSubject: Web Service Call -
Author: Ivan Pedruzzi
Date: 13 Sep 2006 03:28 PM
Hi Tom,

Which Stylus Studio build are you running (Help -> About)?

We also need the entire WSDL document to investigate the problem.
If you prefer you can send it to stylus-field-report@progress.com

Thank You for your help
Ivan Pedruzzi
Stylus Studio Team

Posttop
Tom KSubject: Web Service Call - "unqualified" ignored?
Author: Tom K
Date: 13 Sep 2006 03:35 PM
Thanks for the reply.

I'm using Stylus Studio 2006 R3 XML Enterprise Edition, Build 653g
JVM: 1.5.0_08-b03

I'll send the WSDL now.

   
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.