You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@ws.apache.org by "keith@academickeys.com" <ke...@academickeys.com> on 2006/01/27 17:39:47 UTC
HTTP Authentication with XML-RPC Client / usage?
I have an XML-RPC server using HTTP authentication, I just
don't know how to tell the XmlRpcClient() instance to use a
username/password. I found the
XmlRpcClient.setBasicAuthentication() method, but its
deprecated, and I want to know the non-deprecated way to do
it.
Can someone give me a quick example of how I can use HTTP
authentication with the Apache XML-RPC client class?
Thanks,
Keith
keith@academickeys.com
Re: HTTP Authentication with XML-RPC Client / usage?
Posted by Kevin Gilpin <kg...@gmail.com>.
It looks to me like the expected way to do this is to create an
XmlRpcTransportFactory, set the TRANSPORT_AUTH property on it, then
use it to constructe the XmlRpcClient.
That way the transport can decide how to pass the auth information.
It looks like the Default and Commons transports use a request header
to pass the info along to the server.
- kevin
On 1/27/06, keith@academickeys.com <ke...@academickeys.com> wrote:
> I have an XML-RPC server using HTTP authentication, I just
> don't know how to tell the XmlRpcClient() instance to use a
> username/password. I found the
> XmlRpcClient.setBasicAuthentication() method, but its
> deprecated, and I want to know the non-deprecated way to do
> it.
>
> Can someone give me a quick example of how I can use HTTP
> authentication with the Apache XML-RPC client class?
>
>
> Thanks,
> Keith
> keith@academickeys.com
>