Hello, I have a web service that returns an object. I also have an AXIS generated client that calls this web service and gets the response. In my client I need to get an XML representation of the response object as a string, the soap body will suffice. So far I am unable to find a way of doing this. I see that in the generated by AXIS class that represents the response there's a method called getSerializer, but I don't know how to use it in order to get the xml,if it's possible at all. Can anybody help? Thanks.
Thanks. This is a possible approach, but in my case I need the XML within the client, not before the response reaches the client. The idea behind this is that I have to populate the data from the response in a jsp. I can, of course, write the JSP and reference every field from the response object, but I would like to do it using XML/XSLT transformation.That's why I would like to have the XML representation of the object.
posted 11 years ago
Originally posted by Y Enev: but in my case I need the XML within the client, not before the response reaches the client.
Handlers can be installed on the client side, not just on the server side. You would however have to provide a place where the handler can place the SOAP message so that the client code can access it later.