You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "ALI,HANEEF (HP-Cupertino,ex1)" <ha...@hp.com> on 2003/01/07 21:53:05 UTC

Setting User name /Password with stubs

Hi,

Can some one let me know how to set UserName, password for accessing the
WSDL url?

Note Iam not using  "Call" to invoke the function, but using the stub
directly

These are the steps I have done
	* My WSDL is document style
	* generated stubs by specifying -U username -P password option -- 
	* Greped the code but didn't see any where userName , Password set
in the generated code
	* My Client program looks like this

		OMIService lOMIService = new OMIServiceLocator();
		URL serviceURL = new URL(args[0]);

		OMIPortType lPortType   =
lOMIService.getOMIBindingPort(serviceURL);
		GetRootObject  lSoapBody = new GetRootObject();

		ObjectName lRootObject = lPortType.getRootObject(lSoapBody);

	* I don't see any function to set userName , password 

regards,
Haneef