Search code examples
mulecxfjax-wsmule-flow

Looking at the SOAP message before it is sent to the consuming service


I am using CXF JAX-WS in mule flow to access a service.

I am able to access it successfully.

Is there any way I can see the message that is being sent to the service just before it is sent?


Solution

  • Try the Logging Iterceptors.

    <cxf:jaxws-client clientClass="com.example.MyexampleService"
        wsdlLocation="MyService.wsdl"               
        operation="sayHello" port="MyServicePort"        
        doc:name="SOAP">
        <cxf:outInterceptors>
     <spring:bean id="outLogger"
     class="org.apache.cxf.interceptor.LoggingOutInterceptor" />
        </cxf:outInterceptors>
    </cxf:jaxws-client>