Hi,

 

I am trying to invoke a service using the client stubs generated by
Axis2 Wsdl2Code. I am getting an Axis Fault Http 401 Unauthorized. I
have engaged Rampart module on the client side and this is how I am
setting the options:

 

ServiceClient sc = serviceStub._getServiceClient();

            sc.engageModule("rampart");

            

            Options options = sc.getOptions();

            //set timeout

            options.setTimeOutInMilliSeconds(6000000);

            //set username

            options.setUserName("apache");

            //set paddword

            options.setPassword("password");

 

When I debug through the code, the stub is not adding any WSSE SOAP
headers to the envelope. 

 

I would appreciate any help with this.

 

Thanks

Sumit

Reply via email to