This sounds like you want a generic interceptor that filters and logs all messages. Basically this is a great job for apache camel but it would mean having another framework in your stack.
In camel you can use an expression like:

from("jetty://server/service")
.bean(filterbean)
.to("direct:cxfendpoint")

In the CXF endpoint you use address="camel:direct:cxfendpoint" to attach the route to this endpoint.

The filterbean could look like below and simply has to exist in the spring config as a bean with id filterbean.
class FilterBean {
    public void filter(Document doc) {
        // work on the document e.g. with xpath
        // throw an exception to stop the message
    }
}
Alternatively you can do use choice with an xpath expression directly in the route.

In CXF you could adapt the example give in the mail from devakatiyar to achieve the same. Attaching the interceptor to a CXF endpoint is much easier than setting up camel and cxf. The downside is that interceptors in
CXF are not so easy to work with as they need to work on streams.

Best regards

Christian

Am 01.12.2010 14:10, schrieb Maatari:
Thank you guys for your answers. Actually, I need to manipulate and
see the content of the message. Basically, to cut the story short the
idea is that, the intermediaries will have the responsibility to check
the content of the message and analyze the semantic implication of
each message to monitor conversation. In other term, is the message
authorized, does the message imply obligation from the sender etc.....
Hence I need to see the content of the message and forward or stop it
if necessary while, keeping track of the semantic implication of the
messages.




On Dec 1, 2010, at 8:09 AM, Christian Schneider [via CXF] wrote:

That depends on what the intermediary should do. If it should work
with
java objects deserialized from the incoming soap request then CXF will
help you of course.
If the intermediary should simply route based on the xml or based on
some header fields then apache camel will be a better solution.

Best regards

Christian


Am 01.12.2010 02:33, schrieb Maatari:

Dear All

Is there any facilities/helps provided by the framework to
implement a soap
intermediary ?

I would like to implement an intermediary between a client and a
service as
3 endpoint situated at different location.


Many thanks
--
----
http://www.liquid-reality.de



View message @ 
http://cxf.547215.n5.nabble.com/Soap-Intermdiaries-and-CXF-tp3287079p3287283.html
To unsubscribe from Soap Intermdiaries and CXF, click here.


--
----
http://www.liquid-reality.de

Reply via email to