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 <keith@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
>
|