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
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext 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.

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
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.