Ciao,
I'm trying to consume a web service running under XSP using an Axis
Client.
I have developed the web service and downloaded the WSDL.
Then I have built the client using wsdl2java.
When I try to call a method I don't get the expected answer.
I have been able to diagnose that the web service is not getting the
parameter specificied in my call.
I have used a proxy server to read the XML sent by the Axis client.
Here it is:
<?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>
<idprogetto xmlns=" http://localhost:8088/DocProviderWS/">
<valore xmlns="">s</valore>
</idprogetto>
</soapenv:Body>
</soapenv:Envelope>
Maybe you need to add some more SoapElement attributes specifying the
correct namespace in your XSP based code?
I have found a solution reading on the Internet: have to specify the
xmlns attribute in all the childs, like this.
<?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>
<idprogetto xmlns=" http://localhost:8088/DocProviderWS/">
<valore xmlns=" http://localhost:8088/DocProviderWS">s</valore>
</idprogetto>
</soapenv:Body>
</soapenv:Envelope>
Is there soemone who knows how to avoid the web service to require
this value in all the childs ?
The problem is most likely not that it's required to have them in *all*
child nodes - the problem is that your Axis based code is using an
*incorrect* default xmlns attribute value of "" for the valore element
which is from there on inherited to all its child nodes.
Andreas
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list