Hi,

I'm trying to use the WSA features in CXF, but am having real problems. I'm sending some ReplyTo and FaultTo headers in a request and I have some interceptors to look at these and set properties etc. When I send a request/response message with these headers in, MAPAggregator calls ContextUtils.rebaseResponse which has some weird effects - the out chain on the server side is called with a partial message. This usually ends in some exception because the interceptors are not configured on out bound chain, or because the WSA To in the outbound chain is not set up correctly yet.

I have struggled for a long time trying to work out where in the chain to put my interceptors which rely on being able to examine the contents of the AddressingProperties. I now have IN and OUT interceptors in the PRE_LOGICAL phase with the IN added before MAPAggregaor, and the OUT added after the MAPAggregator.

rebaseResponse kicks in on the IN chain at the server side if:

(isOneway || !ContextUtils.isGenericAddress(maps.getReplyTo()))

i.e., if the client has sent a ReplyTo to a request/response message

as far as I can see.

Can anyone explain what, why and how the ContextUtils.rebaseResponse is supposed to do?

cheers,

Andrew



Reply via email to