The response SOAP message cannot be accessed outside the Stub class (extension of org.apache.axis2.client.Stub) generated by Axis2 Code generator for ADB or XMLBeans data binding (WSDL2Java). The below line of code gives an error:
I am currently using a work-around. Adding the below line in the Stub after response message is received helps me rebuild the response object and make it accessible outside the Stub class:
Probably this fix should be added in the API itself.
I have seen this issue in the STubs generated for ADB and XMLBeans data binding.
TAM Tenfold5, GDev.