Re: SOAP Security: HTTP-Basic authentication

Eugene Prokopiev <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xml
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
>> 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?

I don't know, I don't tried it yet.

I think HTTP-Basic authentication use custom HTTP headers in SOAP 
messages, so can I modify it any way except working with XmlHttpRequest?

Pop up dialog is suitable for me.
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.