[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Arthur Zeyda

8/5/2003 1:47:00 PM

I need to compress the request for a webservice. I have
seen many examples of how to compress/decompress the
response. Most of the decompression examples seemed to
focus on overriding the GetWebResponse method in the
proxy. Is it possible to do something similar to
compress the request.

Thank You
Arthur Zeyda
2 Answers

Arthur Nesterovsky

8/5/2003 10:08:00 PM

0

Hi,

> I need to compress the request for a webservice. I have
> seen many examples of how to compress/decompress the
> response. Most of the decompression examples seemed to
> focus on overriding the GetWebResponse method in the
> proxy. Is it possible to do something similar to
> compress the request.

If we talk about of WebRequest object, so my answer why not?
You can write data to request output stream on the client side
using e.g. GZipOutputStream from ZipSharpLib library. But also
you have to set Transfer-Encoding header equal to gzip. This will
work only if you will use HTTP transport. But in this case, if yours
server will recognize and support gzip archiving, you will success.
_____________________________________
With best wishes, Arthur Nesterovsky
mailto: arthur@nesterovsky-bros.com
Visit my page: http://www.nesterovsk...


Arthur Zeyda

8/6/2003 12:56:00 PM

0

Whenever I implement that I get an error that says the
method I am trying to invoke in the webservice does not
exist. Is it just that I am not decompressing it on the
other side or is it not even getting to the webservice?
>-----Original Message-----
>Hi,
>
>> I need to compress the request for a webservice. I
have
>> seen many examples of how to compress/decompress the
>> response. Most of the decompression examples seemed to
>> focus on overriding the GetWebResponse method in the
>> proxy. Is it possible to do something similar to
>> compress the request.
>
>If we talk about of WebRequest object, so my answer why
not?
>You can write data to request output stream on the
client side
>using e.g. GZipOutputStream from ZipSharpLib library.
But also
>you have to set Transfer-Encoding header equal to gzip.
This will
>work only if you will use HTTP transport. But in this
case, if yours
>server will recognize and support gzip archiving, you
will success.
>_____________________________________
>With best wishes, Arthur Nesterovsky
>mailto: arthur@nesterovsky-bros.com
>Visit my page: http://www.nesterovsk...
>
>
>.
>