Jeehong Min wrote:
My question is: which is the correct serialization to XML based on WSDL? 1 or 2 or both? (And why?) Fragment shown is from inside the SOAP-ENV:Body.I'll bite. I'd say that 2 is correct. 1 does not appear to match the WSDL message format, which requires a Boolean element from the http://www.themindelectric.com/wrappers namespace. AFAIK it's not an option to ignore the message description in the WSDL and just encode the value directly. I haven't looked this up to be sure, though.
1.
<ns1:echoBool xmlns:ns1="http://tempuri.org/soapservices.Echo">
<arg0 xsi:type="xsd:boolean" xsi:nil="true"/>
</ns1:echoBool>
2.
<ns1:echoBool xmlns:ns1="http://tempuri.org/soapservices.Echo">
<ns2:Boolean xsi:type="xsd:boolean" xsi:nil="true" xmlns:ns2="http://www.themindelectric.com/wrappers/"/ <http://www.themindelectric.com/wrappers/%22/>>
</ns1:echoBool>
From just looking at it I'd suspect that 1 was generated from code without using the WSDL.
- Dennis
Dennis M. Sosnoski
Enterprise Java, XML, and Web Services Support
http://www.sosnoski.com
Redmond, WA 425.885.7197
