JAX-WS / Webservices log request / response XML files

You have a webservices class annotated with



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

Please, help!!


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 .



All Articles