JAX-WS / Webservices log request / response XML files

You have a webservices class annotated with

@javax.jws.WebService

      

I will need to write the raw xmls request and response to the database. Anyway, I cannot think / find / cannot do this.

Please, help!!

+3


source to share


1 answer


Very easy. Take a look here :

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



For more selective logging, you can use interceptors, check there .

+3


source







All Articles