Overriding SoapHttpClientProtocol.GetWebResponse

Discussion in 'ASP .Net Web Services' started by Soheil, Sep 7, 2004.

  1. Soheil

    Soheil Guest

    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
     
    Soheil, Sep 7, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Scott McFadden

    SoapHttpClientProtocol and Keep-Alive

    Scott McFadden, Oct 8, 2003, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    515
    Scott McFadden
    Oct 8, 2003
  2. todd
    Replies:
    1
    Views:
    1,071
    Lucien
    May 28, 2004
  3. Cheung Wai Lun

    SoapHttpClientProtocol.Invoke method problem

    Cheung Wai Lun, Jul 21, 2005, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    252
    Cheung Wai Lun
    Jul 21, 2005
  4. manish pendse
    Replies:
    0
    Views:
    192
    manish pendse
    Aug 21, 2005
  5. Harri Pesonen

    How to bind SoapHttpClientProtocol to certain local endpoint?

    Harri Pesonen, Jan 16, 2006, in forum: ASP .Net Web Services
    Replies:
    6
    Views:
    720
    Josh Twist
    Jan 17, 2006
Loading...

Share This Page