I'm using an axis2 client that runs as part of an app served up by Websphere 7. It converts an xml object to an OMElement and then after setting some properties, uses org.apache.axis2.client.ServiceClient to do a sendReceive(OMElement) to send the object and receive back a request. I have to use the "unusual" axis2 jars that come with websphere 7.
Right now it works fine unless the object I am sending gets too large then parts of the response are truncated. I turned on Charles to verify a complete set of data was going out and coming back, and the request and response look complete, however when I call org.apache.axis2.client.ServiceClient.sendReceive(theOMElement) I get a partial response back when the request gets to a certain size - weirdly enough its just a big chunk of some child elements that are missing, i.e. most of the time the xml is still valid.
As a last resort I could try to step into the sendReceive but I'd rather not. Is there a way to do what I am attempting using JAX-WS, and if so can someone point me to a guide?
If not, if someone could suggest how to debug what's going on with the axis2 client I would appreciate it.
Here is some code I'm using to test given the xml is in the file defined by filePath:
old newbie trying to make my rickety brain soak it all up.<br />Live Long and Prosper