Thx for the answer.
Please, can you tell me how do you specify in a wsdl file that there
is an intermediary endpoint. In the last version of WSDL of course. Is
it the actor field, I don't really understand how to use it.
Once you have an intermediary in the WSDL file, will a dynamic client
generate with CXF, know where to send the data automatically, or shall
I manually specify it and if yes please how?
Furthermore, Is the intermediary just another web-service develop at
the intermediary point specified with the "actor" adress in the WSDL
that can be found on the final endpoint where is the actual expect web-
service provider?
What I mean is, i don't know and understand where does fit those
interceptor in the overall architecture. Can any of you please give me
the big picture.
Like what has to be developed, deploy, and where? how the message goes
from the client to the final web-service via the intermediary. shall
the intermediary be another web-service with interceptors?
Kind regards,
-M-
On Dec 1, 2010, at 6:55 PM, Christian Schneider [via CXF] wrote:
> 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
>
>
>
> View message @
> http://cxf.547215.n5.nabble.com/Soap-Intermdiaries-and-CXF-tp3287079p3288079.html
> To unsubscribe from Soap Intermdiaries and CXF, click here.
--
View this message in context:
http://cxf.547215.n5.nabble.com/Soap-Intermdiaries-and-CXF-tp3287079p3338399.html
Sent from the cxf-user mailing list archive at Nabble.com.