3

Have a webservices class annotated by

@javax.jws.WebService

I would need to log the raw request and response xmls to the database. Couldnt think of/find anyway i can do this.

Please help !!

l a s
  • 3,836
  • 10
  • 42
  • 61

1 Answers1

4

Very easy. Have 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.

Community
  • 1
  • 1
dma_k
  • 10,431
  • 16
  • 76
  • 128