Re: SOAP Security: HTTP-Basic authentication

Martin Honnen <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xml
Organization Liberty Development
Message-ID <[email protected]>

Eugene Prokopiev wrote:


> How can I create SOAP Call for service protected by servlet container 
> with HTTP-Basic authentication?
> 
> I can use this code with Axis (http://ws.apache.org/axis/):
> 
> Service service = new Service();
> Call call = (Call)service.createCall();
> call.setUsername(username);
> call.setPassword(password);
> 
> How can I do it with Mozilla JavaScript?

I am not sure you can do that with JavaScript but perhaps if you use 
script to access a web service and authentication is required then 
Mozilla will simply pop up its authentication dialog as normal with 
other resources requiring authentication.
Have you tried that, simply calling the service with script? What 
happens then, do you get an error dialog or an error in the JavaScript 
console?


-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.