ok, understood. Still I think that feels a bit nicer as the intention is
slightly clearer.

Many thanks!

On Fri, Jun 12, 2015 at 4:39 PM Daniel Kulp [via CXF] <
[email protected]> wrote:

>
> > On Jun 12, 2015, at 11:26 AM, eddgrant <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5758265&i=0>> wrote:
> >
> > Thanks Dan, I have written a LoggingInterceptor subclass which does the
> job
> > nicely!
> >
> > I'm storing the request body in a ThreadLocal which I'm then accessing
> later
> > on in a DefaultValidationEventHandler subclass where I detect if
> validation
> > has failed. It feels a bit hacky but I haven't yet found a cleaner way
> to
> > pass my data around.
> >
> > I did see a suggestion of using the Exchange as a message passing
> mechanism
> > however I can't find a way to access the Exchange within
> > formatLoggingMessage(LoggingMessage loggingMessage). Any thoughts here?
>
> You should be able to grab the current message via
> PhaseInterceptorChain.getCurrentMessage() and grab the exchange from there.
>   That said, that’s just through a tread local as well.
>
>
>
> --
> Daniel Kulp
> [hidden email] <http:///user/SendEmail.jtp?type=node&node=5758265&i=1> -
> http://dankulp.com/blog
> Talend Community Coder - http://coders.talend.com
>
>
>
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://cxf.547215.n5.nabble.com/Handle-validation-errors-in-JAX-WS-service-and-obtain-whole-request-body-tp5758197p5758265.html
>  To unsubscribe from Handle validation errors in JAX-WS service and obtain
> whole request body, click here
> <http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5758197&code=ZWRkQGVkZGdyYW50LmNvbXw1NzU4MTk3fDYzMzkwODQ3MQ==>
> .
> NAML
> <http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://cxf.547215.n5.nabble.com/Handle-validation-errors-in-JAX-WS-service-and-obtain-whole-request-body-tp5758197p5758266.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to