• Post Reply Bookmark Topic Watch Topic
  • New Topic

JAX-WS how to log request and response on client side  RSS feed

 
Walter Andresen
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am calling a SOAP based webservice using JAX-WS and a client jar. I want to get a request and response somehow and save it for audit purposes. Can you recommend me how I can do this?

When I google it, only Handlers come up, but, as far as I understand, it is not applicable on client side.

Thank you

WW
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Handlers work on the client side as well: https://jax-ws.java.net/articles/handlers_introduction.html. Something like this lets you save the raw message (in this case printing it out, but you can point it towards other streams):

 
Campbell Ritchie
Sheriff
Posts: 53779
128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to the Ranch
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!