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/