How to get @WebMethod called from a CXF Interceptor ?

Solution Unverified - Updated -

Issue

  • We have an EJB exposing soap methods via @WebService annotation, and a custom CXF In Interceptor (exending CXF LoggingInInterceptor) which logs in DB incoming soap requests.
    we need to know the called method because there are some method calls we don't want to log, we tried many approaches but the one working is pretty ugly and slow (get the payload of the SOAP request as string and using contains method).

  • Can you suggest another way for getting the called method within the Interceptor?

  • We need to get the @WebMethod called, because we have a manager with 4 methods, but we want to log SOAP requests made only on 3 of them exluding the some method calls, in fact it's called many times and we don't need to log its requests/responses

For example:
1st method => No log
2nd method => No log
3rd method => No log
4th method => log
5th method => No log
6th method => log
...and so on.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
  • JBossWS-CXF

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.