473,657 Members | 2,531 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Overriding SoapHttpClientP rotocol.GetWebR esponse

Hi,

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

Now I have to override SoapHttpClientP rotocol.GetWebR esponse
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.GetWebResp onse,
because HttpWebResponse .GetResponseStr eam returns a
read-only stream.

What can I do now?

Thanks in advance,
Soheil
Nov 21 '05 #1
1 6114
"Soheil" <so****@soheil. com> wrote in message news:<#G******* ******@TK2MSFTN GP15.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
SoapHttpClientP rotocol.GetWebR esponse to add the
proper http header to the outgoing request.

Now I have to override SoapHttpClientP rotocol.GetWebR esponse
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.GetWebResp onse,
because HttpWebResponse .GetResponseStr eam 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
1274
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 SoapHttpClientProtocol called Project, and create several subclasses of it. Then I try to use factory patterns and polymorphism to send the Request and Response messages - ( I have a heirarchy for them too).. Somehow it does not work. It keeps blowing up on my...
1
3605
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 only if I'm in the debugger. Here's a stack trace with non-user code shown -- the call to RegisterNotifySource, at the top of the stack, never returns -- I have to do a "break all" inside the debugger, then find this thread and examine its call...
0
4010
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 the terminal to be able to work offline using a cradle. The problem is that when I call the web service (Invoke(), see code below) and during the call loses the connection, the terminal can hang for a very long time in the call (10 minutes or...
4
5130
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 worked ok till I installed .Net v1.1 on the citrix, now I get an error when I get the app to use .NET v1.1. If the app uses .NET v1.0 (with .NET v1.1 stalled), then its ok, however I must use v1.1 for other reasons. Has somebody come across...
0
2399
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 Server and Windows 2003. I have recently installed this application on a computer running Windows 2000 Server that has multiple network cards. One network card connects to the local network. The second network card connects to the firewall and...
2
7631
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 / log / intercept / view the raw data from the request (to debug that what I send conforms to spec) and the response (again to debug) ? WSE has some tracing built in, but I cannot find anything for a SoapHttpClientProtocol use.
1
2412
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 XML document (1, 290). Exception Stack Trace: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader...
0
1492
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 SoapHttpClientProtocol instances, TCP connection is always maintained for reuse. This is understandable. Now, I have one load balancer between client and backend webservice cluster, so, single TCP connection for single invocation is prefer-ed. How...
0
2442
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 return value type is void, not IAsyncResult. So, how can I get result of the webmethod? If not, does it mean this method is only useful for webmethod without output? SoapHttpClientProtocol.InvokeAsync (String, Object, SendOrPostCallback) Invokes...
0
8420
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8842
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8740
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8516
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8617
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2743
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.