sahas
sahas

Reputation: 315

How to print(log) request xml body which is getting passed from java application to soap web service

I would like to print xml body which is getting passed from my web service client to soap web service deployed on some other server. The problem is that I only have wsdl file with me but no service end point is available to do the end to end testing so I wanted to ensure that request xml is getting passed correctly from my end correctly. Please let me know how can I print this.

Upvotes: 0

Views: 9420

Answers (1)

sahas
sahas

Reputation: 315

String requestXML=_call.getMessageContext().getRequestMessage().getSOAPPartAsString();

String responseXML=_call.getMessageContext().getResponseMessage().getSOAPPartAsString();

Upvotes: 2

Related Questions