users@jax-rpc.java.net

Re: xrpcc ignoring header Autenthication

From: David Thorpe <david.thorpe_at_LOGICLIBRARY.COM>
Date: Wed, 14 Aug 2002 14:10:08 -0600

Did you find a way around this problem?
I am facing the same thing, wanting to use soap:header in my wsdl, but the xrpcc tool is giving me the same warning you got.

On Tue, 21 May 2002 10:59:26 +0200, Garry De Toffoli <garry_at_TELEMAR.IT> wrote:

>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.
>
>