On Oct 25, 2012, at 10:17 AM, Crack_David <[email protected]> wrote:

> Hello there,
> Following issue:
> 
> I've created a client that communicates with a SAP-BI Webservice. In case
> that this Webservice's response doesn't seem to work with the cxf framework
> I decided to program an Interceptor that intercepts the invoke() function
> right after the RECEIVE state.
> In it I am parsing the incoming response stream directly into one object.
> 
> My only problem here is how to return this object created in the Interceptor
> back to the main()-thread.  Is there any possibility to do that?

If you do something like:

MessageContentsList.getContentsList(msg).put(0, value);

and then likely grab the chain and pause it, it may work.   If not, you may 
need to grab the chain and remove all the interceptors from the current 
interceptor up to the PRE_LOGICAL phase (and maybe more).  You'd need to 
experiment a little on that.

Dan



> 
> Cheers,
> Chris  
> 
> 
> 
> --
> View this message in context: 
> http://cxf.547215.n5.nabble.com/Sending-return-value-from-Interceptor-back-to-client-tp5717416.html
> Sent from the cxf-user mailing list archive at Nabble.com.

-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to