Hi, Try this (you can use it with your requests too):
<YourClass> response = stub.SomeOperation(request); OMElement omElt = response.getOMElement(response.MY_QNAME, OMAbstractFactory.getSOAP12Factory()); String xml = omElt.toStringWithConsume(); I use it when I want to check if the content (Body) of the SOAP messages is build correctly. On Mon, Feb 14, 2011 at 6:14 PM, Meeusen, Christopher W. < meeusen.christop...@mayo.edu> wrote: > Hi, > > > > I have an ADB client that is working fine, but I would like to get the > contents of the soap envelope and store that XML/String somewhere for > comparisons later in my app. I’m able to do a round trip to the server and > my stub is populated fine with all the elements, but how do I access the > returned envelope itself? > > > > I’ve been looking through the docs here but I don’t see a method to > retrieve this. > http://axis.apache.org/axis2/java/core/api/org/apache/axis2/client/Stub.html > > > > > > > > Thanks, > > Chris > -- Gerard Draper Gil