axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pani, Gourav" <>
Subject RE: Authentication Information in SOAP Header
Date Mon, 22 Dec 2003 14:03:36 GMT
Here is what I am specifically doing in my code.

      // creating the service locator obj  
	TestTransactionService serviceLocator = new

	// creating and executing the transaction
      TestTransaction transaction = serviceLocator.getFastWebService();
      transaction.updateInventory("Foo", fooInfo);

I can't figure out how to use the TestTransactionSoapBindingStub to set the
header.  Any suggestions?

-----Original Message-----
From: Arno Huetter []
Sent: Monday, December 22, 2003 8:43 AM
Subject: AW: Authentication Information in SOAP Header

Hi there,

I don't employ a handler, but simply invoke Stub.setHeader() for passing
authentication data - works fine for me.


Kind regards,
Arno Huetter

-----Urspr√ľngliche Nachricht-----
Von: Pani, Gourav []
Gesendet: Montag, 22. Dezember 2003 14:30
Betreff: Authentication Information in SOAP Header


i am using axis 1.1 on resin 2.1.10 and am trying to send header level
authentication info to a service.  from previous posts and some other
research i have gathered that using handlers would be the right way to go
about it.  however, i cannot seem to find any documentation or sample code
on how to use handlers to manipulate the header of a SOAP envelope before it
is sent out to the service.

i am using WSDLToJava to generate the stub objects instead of the DII way of
using the Call object.

any help is greatly appreciated.


ps:  the setUsername()/setPassword() solution does not work for my case.

View raw message