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)
-> - Stylus Studio - Registrar en o... (1)
-> + Stylus Studio - Registrar en o... (2)
-> + Can a pipeline send a file by ... (2)
-> + After Updateing WIN10 to WIN11... (12)
-> + Where do I add the custom java... (3)
-> + Where is the Diagram tab? (5)
-> + Applying XSLT to Word DOCX/XML (2)
-> - CSV conversion via ConvertToXM... (1)
-> + Text symbols in SS not same as... (4)
-> + Exposing xquery as webservice ... (6)
-> + Syntax Identifier (2)
-> + Saving a Converted XML as an X... (5)
-> + Output document cannot be pars... (4)
-> - Archiving output from conversi... (1)
-> + EDIFACT guideline from Stylus ... (3)
-> + CSV file putting all the data ... (5)
-> + Can't install Home version 64b... (5)
-> + presale - Can I covers this sc... (5)
-> + Problem with UNB (5)
-> + Splitting EDIFACT files pipeli... (4)
-- [1-20] [21-40] [41-60] 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.