You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Law Kaikuo <ka...@usa.net> on 2002/03/20 18:27:24 UTC

Re: [RE: [Data Compression using Apache SOAP]]

Hi Nicolas Fonrose,

  You are right. I did do the convertion between string and byte array in
reverse direction on client side and server side.

  Kaikuo Luo

"Nicolas Fonrose" <ni...@toulouse.valtech.fr> wrote:

Hi Law, 

Your solution is good but I think it is not a general answer to the
"SOAP message compression problem" since it may impact the interface of
your service.

For instance if a method from a WebService returns an big int array
(int[]), you cannot directly use your technique. 

   int[] myMethod(int someParam)

You would need to transform the big int array into a string and by the
way modify the signature of the method of your WebService.

   String myMethod(int someParam)

Then you can compress the string on the server and uncompress it on the
client.


A good solution to compress SOAP messages would be to use interceptors
but I think there is no such thing in Apache SOAP.

Cheers,

Nicolas




-----Original Message-----
From: Law Kaikuo [mailto:kaikuo.law@usa.net] 
Sent: Wednesday, March 20, 2002 5:33 PM
To: soap-user@xml.apache.org
Subject: Re: [Data Compression using Apache SOAP]
Importance: Low


The answer is yes you can.

  In my last project, I need to transmit data contained in XML files,
because files are usually very large (> 5 mega), so I compress them
first using gzip or zip, then send them piece by piece, and assemble
them back into the files and unzip...

  Kaikuo Luo


"Mohssin Assaban" <mo...@OurMaroc.com> wrote:
Is it possible to compres the data transported in the soap envelope
using apache soap? I m developing an application wich returns a large
count of records. But the time needed to transfer all this data (in one
time) is verry long. In the Microsof implementation of soap is it
possible to use some dataformats to transfer such large of data. Does
some one know how I can do this.

Thanks
Mohssin