Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How to add HTTP authentication in Web Services Explorer?
How to add HTTP authentication in Web Services Explorer? [message #223719] Tue, 11 November 2008 22:16 Go to next message
Ver Rey is currently offline Ver ReyFriend
Messages: 1
Registered: July 2009
Junior Member
From reading on different posts the Web Services Explorer supposedly would
have a popup windows to add the username and password when invoking a web
service that requires HTTP Basic Authentication.

However, in my case the popup window didn't occur and I'm already using
WTP 1.5.1. Given that my knowledge with Web Services is somewhat limited I
assume that 1) my Web Server was not set correctly to require basic
authentication or 2) my WSDL doesn't contain information that would
trigger Web Services Explorer to request for the username and password.

In any case, I need to provide HTTP basic authentication for my test and
was wondering if there is a way to either 1) force WSE to request for
username and password or 2) manually add the username and password in WSE?

Thank you in advance.
Re: How to add HTTP authentication in Web Services Explorer? [message #223740 is a reply to message #223719] Wed, 12 November 2008 15:25 Go to previous message
Mark Hutchinson is currently offline Mark HutchinsonFriend
Messages: 53
Registered: July 2009
Member
To check if your service is set up to use basic authentication, try
pasting the endpoint URL in a browser and see if the browser brings up a
username/password dialog.

If the browser doesn't give you a password dialog, then the problem is
probably that your server and web app are not set up properly. Have a
look at the web.xml in your project, I think you need to add
security-role, security-constraint, and login-auth elements. Then you
will need to configure your server to set up users and roles. If you
are using tomcat have a look at conf/tomcat-users.xml


Ver Rey wrote:
> From reading on different posts the Web Services Explorer supposedly
> would have a popup windows to add the username and password when
> invoking a web service that requires HTTP Basic Authentication.
> However, in my case the popup window didn't occur and I'm already using
> WTP 1.5.1. Given that my knowledge with Web Services is somewhat limited
> I assume that 1) my Web Server was not set correctly to require basic
> authentication or 2) my WSDL doesn't contain information that would
> trigger Web Services Explorer to request for the username and password.
> In any case, I need to provide HTTP basic authentication for my test and
> was wondering if there is a way to either 1) force WSE to request for
> username and password or 2) manually add the username and password in WSE?
>
> Thank you in advance.
>
>
>
Previous Topic:[Adopter] Project facets question
Next Topic:XSLT transforms
Goto Forum:
  


Current Time: Sun Dec 21 13:30:40 GMT 2014

Powered by FUDForum. Page generated in 0.13217 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software