axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "robert lazarski" <robertlazar...@gmail.com>
Subject Re: compressing soap message before sending
Date Tue, 07 Mar 2006 12:45:16 GMT
That should be all there is to it. I do exactly the same thing with byte
arrays often. In the generated code from wsdl2java you should see a setter
that accepts a byte[] and a getter that receives one.

If you get stuck just go ahead and ask.

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


On 3/7/06, Plorks mail <plork123@hotmail.com> wrote:
>
>
>
> 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 <robertlazarski@gmail.com>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >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
>
>

Mime
View raw message