Hi All,

Iam using Axis2 1.1.1 .My server configuration of Rampart is working fine,
iam using PasswordCallBackHandler to validate user name and password token
(i have tested using SOAPUI).

I was trying to write a client for my Service and i didnt want to use
PasswordCallBackHandler at the client for setting username and password.I
tried the following option given in a previous post here

ServiceClient sc = stub._getServiceClient();
sc.engageModule("rampart");
Options options = sc.getOptions();
options.setUserName("apache");
options.setPassword("password");

But i think with the version iam using i dont have setUserName and
setPassword method. Could you please tell me how to set the username and
password token at the client side. I avoided PasswordCallBackHandler because
i read that i need to configure axis.xml file in client side as well.I was
not sure about this configuration.Please correct me if iam wrong in my
understanding. A link to the right tutorial would also help

Thanks and Regards

Hari

-- 
Hari.C.Pillai

Reply via email to