Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / September 2004

Tip: Looking for answers? Try searching our database.

Overriding SoapHttpClientProtocol.GetWebResponse

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Soheil - 07 Sep 2004 13:01 GMT
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
Francisco Jos? Hern?ndez - 08 Sep 2004 23:52 GMT
> Hi,
>
[quoted text clipped - 18 lines]
> Thanks in advance,
> Soheil

You can write a soap extension to do this.
http://www.dotnetjunkies.com/Article/46630AE2-1C79-4D5F-827E-6C2857FF1D23.dcik

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.