I guess it depends what large is! I have recently implemented an Apache SOAP client that sends images of up to 4Mb with default JVM settings. I managed to improve performance considerably by base64 encoding the data input stream which avoided having the binary in memory as well.
Is it not the case that Apache SOAP will construct the message in memory however you do it and will always be restricted by this? And if this is the case the best you can do is try to avoid having the XML document and the complete SOAP message (with XML doc) in memory together.
Barry
At 22:18 29/08/2003, you wrote:
Barry,
If the file is large, is that a feasible way to do it?
-----Original Message----- From: Barry White [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2003 5:09 PM To: [EMAIL PROTECTED] Subject: Re: transferring xml files
Hi Tizo,
could you not just put the XML document in the SOAP body and extract it at the other side:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <mail> <to>Tizo</to> <from>Barry</from> <msg>Won't this work?</msg> </mail> </SOAP-ENV:Body> </SOAP-ENV:Envelope> Barry
At 20:25 29/08/2003, you wrote: >Hi, > >I am using apache soap and java, and I need to transfer xml files, maybe >big ones. > >The first thing that came to my head, is sending the xml files as strings, >but I would like to know which is the best way to send xml files via soap, >and, in case that sending them as strings is ok, if there is any kind of >limitations. > >Thanks very much, > >Tizo