« Return to Thread: XMLRPC, GroovyWS with cookies and auth

Re: XMLRPC, GroovyWS with cookies and auth

by Steve Tekell :: Rate this Message:

Reply to Author | View in Thread

tugwilson wrote:
How about this http://rifers.org/paste/show/6985

You subclass and override doRpcCall()
Looks Great!
here's the JIRA issue
http://jira.codehaus.org/browse/GROOVY-2707

At first I thought it was sort of more than I needed, but now I think may replace the URLConnection with the common's HttpClient in doRpcCall(), rather than just add in my cookie.  If I passed one in a constructor, I could use the same initialized httpClient for several different XmlRpc proxys that I was already using for non XmlRpc GETs in the same action.  That's makes it even better.

That could also be the basis for the solution the http://jira.codehaus.org/browse/GROOVY-1426.  HttpClient supports basic and some other types of authentication.

Now if only I could pass a HttpClient in like that to a WSClient.

thx,

Steve

 « Return to Thread: XMLRPC, GroovyWS with cookies and auth