You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Parnell, Scott" <Sc...@xerox.com> on 2005/09/22 21:37:43 UTC

Basic Auth with SAAJ (JAXM) ?

I need to use Basic Auth in a client I've written, but I haven't found a
way to do this when using the Axis implementation of javax.xml.soap
classes. I thought I might be able to configure it on the URL (via
URLConnection) that is passed into the SOAPConnection 'call' method, but
unfortunately, SOAPConnectionImpl does this:

public SOAPMessage call(SOAPMessage request, Object endpoint)
 ...
	Call call = new Call(endpoint.toString());

which throws my configured URL away and makes a new one. As far as I've
been able to determine I don't have access to the underlying Call
object, so none of the JAX-RPC configuration can be done either. Has
anyone figured out how to do this?

Regards,
Scott

Re: Basic Auth with SAAJ (JAXM) ?

Posted by Davanum Srinivas <da...@gmail.com>.
try  http://username:password@Sitename

On 9/22/05, Parnell, Scott <Sc...@xerox.com> wrote:
> I need to use Basic Auth in a client I've written, but I haven't found a
> way to do this when using the Axis implementation of javax.xml.soap
> classes. I thought I might be able to configure it on the URL (via
> URLConnection) that is passed into the SOAPConnection 'call' method, but
> unfortunately, SOAPConnectionImpl does this:
>
> public SOAPMessage call(SOAPMessage request, Object endpoint)
>  ...
>         Call call = new Call(endpoint.toString());
>
> which throws my configured URL away and makes a new one. As far as I've
> been able to determine I don't have access to the underlying Call
> object, so none of the JAX-RPC configuration can be done either. Has
> anyone figured out how to do this?
>
> Regards,
> Scott
>


--
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform