Skip to Content
0
Former Member
Mar 23, 2009 at 01:11 PM

How to authenticate a web service though java

51 Views

Hello all,

I have created a DC of type Web Services and created a deployable proxy using a (*.wsdl) file. Now I using this proxy in a simple standalone java application.

When I call this webservice in my java code, it returns Invalid Response Code: (401) Unauthorized error.

Then I went to the Visual Admin Tool and set the authentication of the proxy as BASIC and typed the userid/password. It worked.

Now my issue is that I dont want to have this fixed userid/password on the server side. I want userid/password to be passed to the webservice dynamically from my java code without having to manually set them using the Visual Admin Tool.

How to achieve this ?

Thanks