Title: java.lang.OutOfMemoryError and Axis client stubs
SAAJ should help you in this case I would think even though I've not tried it.
 
In fact we ran across a similar problem of sending a large dataset in the body of SOAP message. Since we're using Globus toolkit (GT3), we resorted to using GridFTP to basically FTP the files back to the client. This dramatically improved performance issues & solved OutofMemory problems forever.
 
Regards,
 
Sanket Desai
 


From: Milazzo, Michael A HQISEC [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 12, 2005 4:34 PM
To: [EMAIL PROTECTED]
Subject: java.lang.OutOfMemoryError and Axis client stubs

Hello,

I deployed an Axis-based wrapped-style web service that accepts strings and a byte array as parameters.  I generated the client stubs using WSDL2Java and my client works for small files (6.3 MB).  I attempted to send a 63 MB file to my web service, but the client application threw an OutOfMemoryError without contacting the remote service.  My client application opens a file object and retrieves the bytes.  These bytes are then sent as a parameter to my web service.  I tried tweaking the heap size for the Java VM (-Xms256M and -Xmx256M), but it does not fix my problem.  The exception is thrown when I invoke the remote method.  Log data on the server indicates the client never connected.

Would using something like SAAJ fix this issue?  Does anyone know whether Axis has some file size ceiling?

Thanks,

Mike

Reply via email to