views:

78

answers:

2

I am trying to test a user/pw protected web service using the "web services test client" in Eclipse IDE. I am able to generate the client but when I test any methods I get the exception: (401)Unauthorized error. How do i get about putting the username/pw authentication so that my client is able to call the functions successfully?

Thank You

A: 

You can add username password in url of webservice while accessing.

http://username:password@your_webservice_url

YoK
Still does not work. I get exception: (401)Unauthorized.
jini
Can you try same url (one I proposed in my answer) through any browser ? Also post url used and response received.
YoK
Did you try my suggestion ? Did you get some resolution ?
YoK