Skip to content

Instantly share code, notes, and snippets.

@xboard
Last active February 9, 2017 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xboard/17fba1df570cf1cc87e99eb0e9280f96 to your computer and use it in GitHub Desktop.
Save xboard/17fba1df570cf1cc87e99eb0e9280f96 to your computer and use it in GitHub Desktop.
Apache Axis - print SOAP XML sent/received
String requestXML = _call.getMessageContext().getRequestMessage().getSOAPPartAsString();
String responseXML = _call.getMessageContext().getResponseMessage().getSOAPPartAsString();
System.out.println("====================================================");
System.out.println("REQUEST");
System.out.println(requestXML);
System.out.println("====================================================");
System.out.println("RESPONSE");
System.out.println(responseXML);
System.out.println("====================================================");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment