Overriding SoapHttpClientProtocol.GetWebResponse

S

Soheil

Hi,

I'm trying to use http compression for my web service.
I've enabled it on the server and I've overridden
SoapHttpClientProtocol.GetWebResponse to add the
proper http header to the outgoing request.

Now I have to override SoapHttpClientProtocol.GetWebResponse
so that I can decompress the data on the response stream. Since
this method returns a HttpWebResponse, I need to derive
my decompressor class from this class. But HttpWebResponse
offers no default constructor (only one public constructor for
deserialization), so there's no way to instantiate it.

And there'are no chances either if I use base.GetWebResponse,
because HttpWebResponse.GetResponseStream returns a
read-only stream.

What can I do now?

Thanks in advance,
Soheil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top