Skip to content
Advertisement

Getting raw XML response from Java web service client

I am trying to get the raw XML response from a web service, instead of the usual set of POJOs.

I am using a webservice client that I generated (so I have access to the client’s code) from a WSDL and some schemas. The client is generated in RAD 7.5, I think using JAX-WS. I’ve been looking at the client code itself, but I’m not even sure if the client code ever handles raw XML or if it passes it off to other libraries.

Advertisement

Answer

You can do it using

JavaScript

you can simply get message using SOAPMessageContext#getMessage() and convert message to String using method

JavaScript

Also you can read here about SOAP handler on client side
Article

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement