hi,
would i have to do anything else to get this to work? in my wsdl i have
something like this
<element name="myMethod">
- <complexType>
- <sequence>
<element name="paramId" type="xsd:string" />
</sequence>
</complexType>
</element>
would this now become
<element name="myMethod">
- <complexType>
- <sequence>
<element name="paramId" type="xsd:base64Binary" />
</sequence>
</complexType>
</element>
?
do i have to do anything else?
thanks for your help
From: robert <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: compressing soap message before sending
Date: Fri, 3 Mar 2006 13:20:27 -0300
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
--
_________________________________________________________________
Be the first to hear what's new at MSN - sign up to our free newsletters!
http://www.msn.co.uk/newsletters