You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Mike Baranski <mi...@gmail.com> on 2010/06/15 16:52:45 UTC
Soap Client
I have a soap client that is generating the following call and response:
=======================================================
= Elapsed: 162 milliseconds
= In message: <?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:Body><ns1:greetPerson
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://demo.unitedcoders.com/"><ns1:arg0
xsi:type="soapenc:string"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">Hello!</ns1:arg0></ns1:greetPerson></soapenv:Body></soapenv:Envelope>
= Out message: <?xml version="1.0" encoding="UTF-8"?><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Unmarshalling
Error: unexpected element
(uri:"http://demo.unitedcoders.com/",
local:"arg0"). Expected elements are <{}arg0>
</faultstring></soap:Fault></soap:Body></soap:Envelope>
=======================================================
This is obviously giving the exception that is documented. The
problem (I've used soapUI to test) is the arg0:
<ns1:arg0 xsi:type="soapenc:string"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">Hello!</ns1:arg0>
If I remove the ns1 and just send arg0, it works. That is, this is "correct":
<arg0 xsi:type="soapenc:string"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">Hello!</arg0>
Any ideas?
--
--------------------------------
http://www.mikeski.net
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org