Thanks,
Tom
Dennis Sosnoski wrote:
Probably the more important issue here is that Axis is generating the testpostdata element (and child element) without a namespace, while judging from the VB client request these need to be in the http://ar.masstech-pts.org/ namespace. If the element's in the wrong (or no) namespace, it's garbage.
- Dennis
Dennis M. Sosnoski Enterprise Java, XML, and Web Services Support http://www.sosnoski.com Redmond, WA 425.885.7197
Jim Murphy wrote:
Looks like the .NET service is doc/lit and the axis client is sending an rpc/encoded request. Notice the encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" attribute on the Body child element.
Thomas Bolioli wrote:
I am writing an Axis client to interface with a VB.NET soap service and I am having an issue with the axis client (vb client apparently works) where the soap service is not getting the string being passed through the only function and argument the service takes. Below are the two envelopes. What could be causing this? Since it is authenticating, I am pretty sure the problem is in the body of the envelope and not the header. I am at a loss since the differences (see testpostdata and xmldata elements) between these two are minimal and seem to be more semantic than anything of substance.
Thanks in advance,
Tom
VB.Net Client envelope
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<cAuthentication xmlns="http://ar.masstech-pts.org/">
<UserName>username</UserName>
<Password>******</Password>
</cAuthentication>
</soap:Header>
<soap:Body>
<testpostdata xmlns="http://ar.masstech-pts.org/">
<xmldata>String Here...
</xmldata>
</testpostdata></soap:Body></soap:Envelope>
Axis client envelope
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<ns1:cAuthentication soapenv:mustUnderstand="0" xmlns:ns1="http://ar.masstech-pts.org/">
<ns1:UserName>username</ns1:UserName>
<ns1:Password>*******</ns1:Password>
</ns1:cAuthentication>
</soapenv:Header>
<soapenv:Body>
<testpostdata soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<xmldata xsi:type="xsd:string">String Here...
</xmldata>
</testpostdata>
</soapenv:Body>
