I have actually just finished a webservice client that uses the setUsername and 
setPassword methods of the call interface.  This is how it works:

SOAPInterface_PortType service = new SOAPInterfaceLocator().getSOAPInterface();
((SOAPInterface_BindingStub)service).setUsername("username");
((SOAPInterface_BindingStub)service).setPassword("password");

SOAPReturn return = service.getMethod(Parameters);


The only issue that I found with this method is that the password needed to be 
encrypted for my use.  If I did not encrypt the string used in the password, I 
received a 401 Authentication error.

I hope this helps you to at least get started.

Pobzeb Armerding
Vann's Inc.
Software Engineer

On Mon, 31 Oct 2005 15:42:34 -0800, Ravi Krishnamurthy wrote:
| Hello:
| I see the call interface has setUserName and setPassword. Wondering
| if there is any example on how to set up a webservice that needs
| the username and password for testing.
|
| Thanks,
| Ravi

Reply via email to