Hello, 
I'm facing the same problem to call a service deployed on a Servicemix
engine. I'm trying your code, I think  an excellent solution  but the
"oldClient" seems to be returned null, so I cannot go head: 
 [...]
 HttpChannel httpChannel = (HttpChannel)client.getOutChannel();
 HttpClient oldClient =
(HttpClient)httpChannel.getProperty(CommonsHttpMessageSender.HTTP_CLIENT); 
 [...]

log:  oldClient is null

Anyway, why no workaround or patch inside XFire is going to be introduced ? 
Thank you very much,

Gianni 




Bernd Schuller wrote:
> 
> oops, a small correction to the code I posted
> getting the original HttpClient goes as follows:
> 
> Bernd Schuller wrote:
>> [...]
>> // extract the HttpClient instance from your XFire client
>>        
>> Channel channel = client.getOutChannel();
>> if (channel instanceof HttpChannel) {
>>     HttpChannel httpChannel=(HttpChannel)channel;
> 
>>     final HttpClient oldClient=
>> (HttpClient)httpChannel.getProperty(CommonsHttpMessageSender.HTTP_CLIENT);
> 
>> 
> [...]
> 
> hope it helps,
> Bernd.
> 
> 
> -- 
> Dr. Bernd Schuller                     |  mail:  [EMAIL PROTECTED]
>                                         |  phone: +49 2461 61-8736 (fax:
> -6656)
> Distributed Systems and Grid Computing |  personal blog:
> Juelich Supercomputing Centre          | 
> http://www.jroller.com/page/gridhaus
> http://www.fz-juelich.de/jsc           |
> 
> 
> -----------------------------------------------------------------------------------------
> -----------------------------------------------------------------------------------------
> Forschungszentrum Jülich GmbH
> 52425 Jülich
> 
> Sitz der Gesellschaft: Jülich
> Eingetragen im Handelsregister des Amtsgerichts Düren Nr. HR B 3498
> Vorsitzende des Aufsichtsrats: MinDirig'in Bärbel Brumme-Bothe
> Geschäftsführung: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft
> (stellv. 
> Vorsitzender)
> -----------------------------------------------------------------------------------------
> -----------------------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/HTTP302%2C-followRedirects-from-Acegi-secured-webservice-tf4684809.html#a13912927
Sent from the XFire - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to