I generated my stubs using the axis-wsdl2java ant task specifying a username/password. When the service was unsecured, I used to be able to call it like this:
MyService myService = new MyServiceLocator();
URL serviceUrl = new URL("http://localhost:7001/webservice/MyService?WSDL");
MyServicePortType mspt = myService.getMyServicePortTypeSoapPort(serviceUrl);
result = mspt.getSomeResult(79744);
Now that the service has been secured using basic authentication (username/password), how do I specify my username/password when connecting to the service?
Regards,
Joshua
*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information. If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited. If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************
- How to do basic http authentication with axis 1.3 client? Joshua . White
- Re: How to do basic http authentication with axis 1.... Joshua . White
- Re: How to do basic http authentication with axi... James Gough
- Re: How to do basic http authentication with... Joshua . White
- Re: How to do basic http authentication ... Joshua . White
- Re: How to do basic http authentica... James Gough
- Re: How to do basic http authen... Joshua . White
- config parameter in server.... Carmine Gargiulo
- Re: How to do basic http authentication with... Dies Koper