Hi,
We are working on creating an Axis client for a .NET web service. Our Axis client, created primarily with WSDL2java, creates the following SOAP body:
<soapenv:Body>
<ns1:process soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="CreditCardAuth">
<ns1:xml xsi:type="xsd:string">
BLAH
</ns1:xml>
</ns1:process>
</soapenv:Body>
While our original .NET client creates the following body:
<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<tns:process>
<xml xsi:type="xsd:string">
BLAH
</xml>
</tns:process>
</soap:Body>
Where TNS is defined in the SOAP envelope like this:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="CreditCardAuth" xmlns:types="CreditCardAuth/encodedTypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
Note that the URI for ns1 and tns are the same "CreditCardAuth."
The .NET server reading the content of our process tags as empty. Is this because the xml element is not defined in the same namespace for each process above?
Thanks,
Greg
Greg Bobak
Senior Programmer Analyst
Cole National
http://www.thingsremembered.com
Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of my firm shall be understood as neither given nor endorsed by it.