Hi to all,
I am new to WebService, so excuse me if my questions may be strange.
Well,
I would like to access a WebService in which a methods has a SOAP Header called Authentication,
but using the xrpcc tool, the generation of the client code retun this warning:
ignoring header "Authentication" of binding operation "readAnagraficaFromId".
calling the method "readAnagraficaFromId" return this exception:
java.rmi.RemoteException: received fault: "Server did not find required Authentication SOAP header in the message." (code: "Server" namespace: "
http://schemas.xmlsoap.org/soap/envelope/"); nested exception is:
received fault: "Server did not find required Authentication SOAP header in the message." (code: "Server" namespace: "
http://schemas.xmlsoap.org/soap/envelope/")
I know that the method readAnagraficaFromID has a SOAP Header thank to this url
http://www.soapclient.com/soapclient.com/soaptest.html and indicating this WSDL File Address:
http://www.artigianinet.com/webservices/getanagrafica.asmx?wsdl
this test said me that the method readAnagraficaFromId has a SOAP Headers in which there are two elements: Authentication.User and Authentication.Password
My questions are:
1.. how can I call the readAnagraficaFromId method correctly?
2.. How can I set the Soap Header when I call the readAnagraficaFromId method?
3.. why xrpcc does not generated the corrected code?
Thank you very much.