I would just do getBytes() on the String and compress the byte array: 

http://javaalmanac.com/egs/java.util.zip/CompArray.html

From there, define xsd:base64Binary in your wsdl for the byte array you send 
over wire: 

HTH, 
Robert
http://www.braziloutsource.com/

Em Sexta 03 Março 2006 12:50, o Plorks mail escreveu:
> hi,
>
> can anyone giveme or lead me to a good exampleofcompressing a soap message?
>
> i'm writing a web service where i'll be sending large amounts of data and
> want to compress it before i send it?
>
> the data will be a String, not a file is this possible?
>
> also is it  possible to compress the String, send it and when a client
> receives it, it's automatically uncompressed?  or would it be better to
> send the compressed String and let the client uncompress it
>
> many thanks for any help
>
> _________________________________________________________________
> Are you using the latest version of MSN Messenger? Download MSN Messenger
> 7.5 today! http://messenger.msn.co.uk

-- 

Reply via email to