You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by Sumit Shah <Su...@cgifederal.com> on 2008/11/19 17:36:52 UTC
Rampart 1.4/Axis2 1.4: HTTP 401 Unauthorized error
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