On Thu, Sep 3, 2009 at 1:21 PM, Anand Navale <[email protected]> wrote:
> Hi, > > We are using Axis2 1.4 (on JRE 5 runtime) as web service client for our > application. One of the web services requires handling massive objects in > the response. Right now we are getting out of memory error whenever we > receive large web service response. Modifying the web service or increasing > the JVM heap size is not an option for us. Does Axis2 web service client > framework provide any mechanism for copying the received web service > response to the file system and not build the entire response object in > memory. Then in our application we could read the response from the file. > yes. then you can not use data binding. you can use a ServiceClient to send and receive OM Elements. Axiom works in pull parsing. i.e it does not build the envelope until you call for. Once you have the OMElement you can get the xml stream reader and write it to the file system. thanks, Amila. Thanks in advance, > Anand Navale. > -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/
