Hi,

You just want to extract something from the soap body,right?
First of all, something inside soap body isn't the soapAction item we generally used. Anyway, you can take a look at an interceptor[1] we've used in servicemix-cxf-bc test code as an example, this interceptor basically dump and cache inputStream, you can search anything you want from the input message, also you can modify the input Message if you want, I think it's very similar with your requirement.

[1]https://svn.apache.org/repos/asf/servicemix/components/trunk/bindings/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/interceptors/ReviseFaultInterceptor.java

Freeman
On 2011-6-1, at 上午11:38, bharal wrote:


Hey all,

i'm very new to cxf. I'm working on a replatform at work from a home- grown
soap service to cxf. My question is:

I'm writing a test case, and want to check, on the server-side, what the sent soap body looks like. That is, i'd like to reconcile that against what
the  client added to the soap body.

So, given this soap message:
<soap:envelope...
<soap:header...
<soap:body>
<someElement>
<child>text</child>
/someElement>
</soap:body>
<soap:header>

I'm trying to use an in-interceptor on the server side - if that is the right way to do it - to pull out the "someElement" as an element, and then
reconcile that with the element that the test case initially added.
Yes, they should be identical.

Can some kind soul give me the interceptor code to do this, or in the very
least which phase this is meant to be in? Or if this is even feasible?
Or failing that, where I can find such information? I've worked out how to add and retrive headers - http and soap - but cannot work out how to access
the action!

cheers

--
View this message in context: 
http://cxf.547215.n5.nabble.com/How-do-i-get-the-soap-action-tp4444089p4444089.html
Sent from the cxf-user mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference








Reply via email to