Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > WSDL- Mapping Application Defined Names to XML Names

Reply
Thread Tools

WSDL- Mapping Application Defined Names to XML Names

 
 
Craig
Guest
Posts: n/a
 
      02-09-2004
We have a customer who sent us a WSDL containing the following
snippet:

<message name="PP6000.Execute">
<part name="Xmlreaderlvcaux" type="xsd:string"/>
</message>

We imported this into our tool (webMethods) and had problems invoking
a call to the other. Installing a sniffer, I noted the following
being sent:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlnssd="http://www.w3.org/2001/XMLSchema"
xmlnssi="http://www.w3.org/2001/XMLSchema-instance"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ser-root:Execute xmlns:ser-root="http://..[removed]..."
SOAP-ENC:root="1">
<_x0058_mlreaderlvcaux xsi:type="xsd:string">random
text</_x0058_mlreaderlvcaux>
</ser-root:Execute>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

As you can see, the parameter name was remapped from Xmlreaderlvcaux
to _x0058_mlreaderlvcaux. I opened a service ticket assuming this was
an error, and I was referred to this URL:
http://www.w3.org/TR/2003/REC-soap12...30624/#namemap, which
does indicate that this application name can (should?) be mapped as
indicated (section B1-6 Case 3).

So, before I tell my customer he needs to fix his soap server, I
wanted to confirm that even though the parameter name was not remapped
in the WSDL he sent us, his server should still accept the remapped
name when we send it back. Or was our toolkit incorrect in its
remapping of the name, since the WSDL did not include the remapping?
I guess I'm just trying to figure out which end is at fault here.

And yes, if I manually intercept the message and change the part name
back to its original name, the other side does accept the message.

Thanks
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mapping betwing a standard type and a user defined type with SWIG Lyes Amazouz Ruby 2 08-20-2008 04:01 PM
#if (defined(__STDC__) && !defined(NO_PROTOTYPE)) || defined(__cplusplus) Oodini C Programming 1 09-27-2005 07:58 PM
What XML technologies to learn first for "XML Processing" and "XML Mapping"? Bomb Diggy Java 0 07-28-2004 07:26 AM
ANN: New XML Differencing, Updated XML Mapping in Stylus Studio 5.3 Stylus Studio Java 0 07-06-2004 02:47 PM
XSL rules applying to XSD (XML schema) defined type names (as opposed to node names) Lewis G. Pringle, Jr. XML 0 09-30-2003 10:34 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57