473,395 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Overriding SoapHttpClientProtocol.GetWebResponse

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
Nov 21 '05 #1
1 6063
"Soheil" <so****@soheil.com> wrote in message news:<#G*************@TK2MSFTNGP15.phx.gbl>...
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


You can write a soap extension to do this.
http://www.dotnetjunkies.com/Article...857FF1D23.dcik
Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Faraz | last post by:
Is it possible to create a inheritance heirarchy for the web service proxy class that inherits the SoapHttpClientProtocol?? I am trying to create a superclass that inherits from...
1
by: Gregory Hassett | last post by:
Hi, I have a web service called GetComputerNameAndDescription which I can call from the main thread of my app. If I call it from a separate thread, however, it hangs on the call to Invoke() -- but...
0
by: Kim | last post by:
Hi, I am calling a web service from a hand held terminal (running Pocket pc 2002) using the SoapHttpClientProtocol class. Sometimes the terminal gets out of network coverage - in that case I want...
4
by: Jit Prasad | last post by:
I have a working client-side Vb.Net (.net v1.0) app that talks to a Webspere webservice on a windows 2000 server. The client side app runs on a citrix server, also a Windows 2000 server. The app...
0
by: kvarga | last post by:
I have written an Windows Service application, in C#, which calls a web service periodically. This application works fine on a variety of Operating Systems including XP Pro, XP Home, Windows 2000...
2
by: Jaans | last post by:
(Using the .NET Framework 2 RTM) I'm inheriting from SoapHttpClientProtocol to create a "proxy" class that interfaces with a 3rd party system using an HTTP SOAP interface. How can I trace /...
1
by: scott mcfadden | last post by:
I am experiencing intermittent errors upon invoking my web service method. Exception Type: System.InvalidOperationException Exception Source: System.Xml Exception Message: There is an error in...
0
by: Morgan Cheng | last post by:
I use VS auto generated code to invoke a internal network webservice. The auto-generated code use class SoapHttpClientProtocol to do Soap-on- http communication. It turns out that for single...
0
by: Morgan Cheng | last post by:
For web service client, we use SoapHttpClientProtocol. There is BeginInvoke/EndInvoke methods defined in this class, and a method InvokeAsync. The argument list is same as BeginInvoke, but the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.