Search code examples
web-servicesloggingclientjava-metro-framework

How to log SOAP messages which are sent by Metro stack


I'm trying to log my messages which are sent using a Metro stack into console. Could not find any way.


Solution

  • Message logging to stdout (valid for METRO only!):

    On the client

    Java 5: Set system property

    -Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true
    

    Java 6: Set system property

    -Dcom.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump=true
    

    On the server side

    Set system property

    -Dcom.sun.xml.ws.transport.http.HttpAdapter.dump=true