You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Thom Hehl <he...@asset.com> on 2006/05/17 21:21:49 UTC
Compression proprosal
We're using Axis-java 1.3. I have a project to compress the SOAP
payload. I was thinking it would be better to compress the entire SOAP
envelope. How would I do this?
At some point, invoke is probably using java.net and sending data in and
out through some kind of input stream. I would like to have axis look at
startup for certain classes that I feed it as subclasses of
FilterInputStream and FilterOutputStream. They would wrap these around
the InputStream and OutputStream currently communicating with the
sockets. THis would allow fast cheap and easy implementation of
compression of the entire SOAP envelope, speeding along the process with
VERY low impact to the axis code base itself.
These streams would be specified in the configuration file or using
system properties and would be bound at run time using reflection.
I would be interested in hearing any opinions about this.
Re: Compression proprosal
Posted by Thom Hehl <he...@asset.com>.
OK, where does the following code go?
VersionSoapBindingStub binding = (VersionSoapBindingStub) new VersionServiceLocator()
.getVersion();
// Compress the request
binding._setProperty(HTTPConstants.MC_GZIP_REQUEST, Boolean.TRUE);
// Tell the server it can compress the response
binding._setProperty(HTTPConstants.MC_ACCEPT_GZIP, Boolean.TRUE);
// invoke the service
String result = binding.getVersion();
I use WSDL2JAVA to generate my classes. Am I going to have to hand edit
one of these classes I don't normally change? Can I plug something into
wsdl2java to do that for me?
Thanks.
Davanum Srinivas wrote:
> already done :)
>
> http://wiki.apache.org/ws/FrontPage/Axis/GzipCompression
>
> -- dims
>
> On 5/17/06, Thom Hehl <he...@asset.com> wrote:
>> We're using Axis-java 1.3. I have a project to compress the SOAP
>> payload. I was thinking it would be better to compress the entire SOAP
>> envelope. How would I do this?
>>
>> At some point, invoke is probably using java.net and sending data in and
>> out through some kind of input stream. I would like to have axis look at
>> startup for certain classes that I feed it as subclasses of
>> FilterInputStream and FilterOutputStream. They would wrap these around
>> the InputStream and OutputStream currently communicating with the
>> sockets. THis would allow fast cheap and easy implementation of
>> compression of the entire SOAP envelope, speeding along the process with
>> VERY low impact to the axis code base itself.
>>
>> These streams would be specified in the configuration file or using
>> system properties and would be bound at run time using reflection.
>>
>> I would be interested in hearing any opinions about this.
>>
>
>
Re: Compression proprosal
Posted by Thom Hehl <he...@asset.com>.
I'm kind of new to Axis. I read the below document, but do not know how
to use the following code:
VersionSoapBindingStub binding = (VersionSoapBindingStub) new VersionServiceLocator()
.getVersion();
// Compress the request
binding._setProperty(HTTPConstants.MC_GZIP_REQUEST, Boolean.TRUE);
// Tell the server it can compress the response
binding._setProperty(HTTPConstants.MC_ACCEPT_GZIP, Boolean.TRUE);
// invoke the service
String result = binding.getVersion();
The classes referenced are not in the API docs. Also, there is no
documentation on how to turn it on on the server side. Do we just turn
it on in tomcat?
Has someone done this already that can help?
Thanks.
Davanum Srinivas wrote:
> already done :)
>
> http://wiki.apache.org/ws/FrontPage/Axis/GzipCompression
>
> -- dims
>
> On 5/17/06, Thom Hehl <he...@asset.com> wrote:
>> We're using Axis-java 1.3. I have a project to compress the SOAP
>> payload. I was thinking it would be better to compress the entire SOAP
>> envelope. How would I do this?
>>
>> At some point, invoke is probably using java.net and sending data in and
>> out through some kind of input stream. I would like to have axis look at
>> startup for certain classes that I feed it as subclasses of
>> FilterInputStream and FilterOutputStream. They would wrap these around
>> the InputStream and OutputStream currently communicating with the
>> sockets. THis would allow fast cheap and easy implementation of
>> compression of the entire SOAP envelope, speeding along the process with
>> VERY low impact to the axis code base itself.
>>
>> These streams would be specified in the configuration file or using
>> system properties and would be bound at run time using reflection.
>>
>> I would be interested in hearing any opinions about this.
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Compression proprosal
Posted by Thom Hehl <he...@asset.com>.
Wow! What a great idea!
Davanum Srinivas wrote:
> already done :)
>
> http://wiki.apache.org/ws/FrontPage/Axis/GzipCompression
>
> -- dims
>
> On 5/17/06, Thom Hehl <he...@asset.com> wrote:
>> We're using Axis-java 1.3. I have a project to compress the SOAP
>> payload. I was thinking it would be better to compress the entire SOAP
>> envelope. How would I do this?
>>
>> At some point, invoke is probably using java.net and sending data in and
>> out through some kind of input stream. I would like to have axis look at
>> startup for certain classes that I feed it as subclasses of
>> FilterInputStream and FilterOutputStream. They would wrap these around
>> the InputStream and OutputStream currently communicating with the
>> sockets. THis would allow fast cheap and easy implementation of
>> compression of the entire SOAP envelope, speeding along the process with
>> VERY low impact to the axis code base itself.
>>
>> These streams would be specified in the configuration file or using
>> system properties and would be bound at run time using reflection.
>>
>> I would be interested in hearing any opinions about this.
>>
>
>
Re: Compression proprosal
Posted by Davanum Srinivas <da...@gmail.com>.
already done :)
http://wiki.apache.org/ws/FrontPage/Axis/GzipCompression
-- dims
On 5/17/06, Thom Hehl <he...@asset.com> wrote:
> We're using Axis-java 1.3. I have a project to compress the SOAP
> payload. I was thinking it would be better to compress the entire SOAP
> envelope. How would I do this?
>
> At some point, invoke is probably using java.net and sending data in and
> out through some kind of input stream. I would like to have axis look at
> startup for certain classes that I feed it as subclasses of
> FilterInputStream and FilterOutputStream. They would wrap these around
> the InputStream and OutputStream currently communicating with the
> sockets. THis would allow fast cheap and easy implementation of
> compression of the entire SOAP envelope, speeding along the process with
> VERY low impact to the axis code base itself.
>
> These streams would be specified in the configuration file or using
> system properties and would be bound at run time using reflection.
>
> I would be interested in hearing any opinions about this.
>
--
Davanum Srinivas : http://wso2.com/blogs/