Before sending this post I have searched the mailing listo for hours but I couldn't find an answer, maybe beacuse I'm not an XML expert.
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>
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 ?
TIA
Archimede Informatica NEWS!
==================================================
Realizzato il Sistema Integrato per la biglietteria della Torre di Pisa:
prenotazione, vendita, pre-vendita ed emissione dei biglietti di ingresso
alla Torre sia online che presso le biglietterie dislocate sulla piazza:
http://www.opapisa.it/boxoffice
Partner del Progetto Ci-Tel "Front office Telematico per il cittadino"
Ente Coordinatore Comune di Pisa
http://www.comune.pisa.it/doc/e-government.htm
==================================================
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
e-mail: [EMAIL PROTECTED]
web: http://www.archicoop.it
No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.375 / Virus Database: 267.14.21/235 - Release Date: 19/01/2006
_______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
