Ok I figured it out-- but not trivial one. Hate using _ in methodNames
javax.xml.rpc.Stub lStub = (javax.xml.rpc.Stub)lPortType;
lStub._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY,"UserName");
lStub._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY,"Password");
regards,
Haneef
-----Original Message-----
From: ALI,HANEEF (HP-Cupertino,ex1) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 12:53 PM
To: '[EMAIL PROTECTED]'
Subject: 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