I modified XMLRPC for transport with Apache HttpClient. This
modification can solve all your problems, I think. I didn't share this
modification with others because I didn't test it (and I don't know
how to make diff :) yet thouroghly.
I did it, because used URLConection has some problems and has no
funcionality I need (aborting connection).
some code snippets to help you patch the lib (you need to modify some
other constructors - I deleted them, I'm not going to use them):
HttpClient client = new HttpClient();
PostMethod method = new PostMethod("http://example....");
XmlRpcClient xmlrpc = new XmlRpcClient(client, method);
Vector result = (Vector) xmlrpc.execute("getShowColumns", params);
Hope these changes are ok and it'll help you. I'm using it in
prototype of my program and it works great...
If anyone from XMLRPC lib developers can check this and say if it's
smart enough to get into main tree, or it's stupid change, I will be
On Tue, 08 Feb 2005 12:35:23 -0500, Bentzion Schochet
> Thanks for the response Michael. I will take another look at the source.
> Has anyone else had a need to for maintaining session state? Or is the
> standard for this always to pass the sessionid around as a parameter?
> I really like the way the Python XMLRPC framework does it where you can
> pass your own Transport implementation to the XMLRPC main class.
> Make More Sales with http://www.QuickBeep.com > Never lose a bookmark again with http://KeepTabs.com > For all your gift giving needs http://SaleCity.com >
> Blog: http://www.killersite.com > Skype: callto://ben.schochet
> -----Original Message-----
> From: Michael Landon - IBN [mailto:mlandon@ibna...]
> Sent: Tuesday, February 08, 2005 10:45 AM
> To: email@example.com...; ben@kill... > Subject: Re: Cookie Information
> As of version 1.1, there was no interface for getting/setting HTTP
> info, but a quick look at the source code for the appropriate client
> (XmlRpcClientLite or XmlRpcClient) will show you places where you could
> modify the source & easily get/set header info.
> ----- Original Message -----
> From: "Bentzion Schochet" <ben@kill...>
> To: <firstname.lastname@example.org...>
> Sent: Monday, February 07, 2005 8:28 PM
> Subject: Cookie Information
> I need to track a session through a cookie header. Is this possible with
> this implementation of XMLRPC? Is there another version in Java that
> allow me access to HTTP header information?
> I need to be able to get/set HTTP headers on the XMLRPC traffic (i.e.
> cookies etc.).
> Please respond if you have any information on this. I urgently need to
> this working.
> Thanks so much,