hi there,

SOAP w/ attachments allows you to easily send as much
data as you want between soap endpoints without loading
it into memory. it looks just like regular RPC, and
attachments can be mingled with regular arguments like this:

endpoint.invoke( 5, "hi", new MIMEData( "url-of-source" ) );

many SOAP implementations support this, including our
own GLUE product, a free download from http://www.themindelectric.com.

hope this helps,

cheers,
graham

-----Original Message-----
From: Abhinav Gupta [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 26, 2001 4:32 PM
To: [EMAIL PROTECTED]
Subject: RE: SOAP client giving outofmemoryerror


Hi Ashish,

        You will probably need to implement soap over ftp (Just kidding). If you
are sending that kind of data in a RPC call than there is something
fundamentally wrong with your design.

Abhinav Gupta
FirstRain Inc. NY


-----Original Message-----
From: ashish ranjan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 25, 2001 6:12 PM
To: [EMAIL PROTECTED]
Subject: SOAP client giving outofmemoryerror


Hi,
   I am trying to send > 10MB of data using soap. At the client side i am
getting outofmemoryerror when the call object is invoked.
How to build a client which can receive huge data??? The error message is
given below.
Any help will be appreciated....

Thanks,
Ashish

Exception in xhiead "main" java.lang.OutOfMtmoryError
        ajava.lang.StringBuffer.expandCapacity(StringBuffer.java:204,
Compiled
 Code)
        at java.lang.StringBuffer.append(StringBuffer.java:396, Compiled
Code)
        at java.io.StringWriter.write(StringWriter.java:96)
        at java.io.PrintWriter.newLine(PrintWriter.java:240)
        at java.io.PrintWriter.println(PrintWriter.java:391)
        at java.io.PrintWriter.println(PrintWriter.java:486)
        at
org.apache.soap.util.IOUtils.getStringFromReader(IOUtils.java:81, Com
piled Code)
        at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:169)
        at org.apache.soap.rpc.Call.invoke(Call.java:212)
        at soapclient1.main(soapclient1.java:66)


 _________________________________________________________ Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Reply via email to