473,602 Members | 2,811 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to make SoapHttpClientP rotocol create different TCP connection for web service invocation?

I use VS auto generated code to invoke a internal network webservice.
The auto-generated code use class SoapHttpClientP rotocol to do Soap-on-
http communication. It turns out that for single
SoapHttpClientP rotocol 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 to make it create TCP connection for one method invocation and
then close it?
Thanks,

Jun 20 '07 #1
0 1483

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

Similar topics

0
1273
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
3601
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
4000
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...
0
2397
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...
6
13601
by: Bob Kline | last post by:
We have run into a problem trying to build a client which works with a web service implemented against the WSDL at . We have successfully created clients using other tools than the DotNet framework, and in fact we were able to create a client using an earlier version of the framework (1.1.4322.2032) without any problems. With the current version of the framework (2.0.50727.42) it appears that the Invoke method of the...
11
2340
by: matsi.inc | last post by:
I am looking to make something like a delegate that i can use in my projects but am having a hard time getting started. The behavior I am most interested in is how a delegate changes it's Invoke method dynamically to match the arguments supplied to it when it is defined. For example... public delegate void MyDelegate(string myString, int myInt);
2
12809
by: ashishjainism | last post by:
I am unable to install my windows service and the installutil is throwing the following error: Running a transacted installation. Beginning the Install phase of the installation. See the contents of the log file for the d:\practice in .net\mywindowsservice\mywindowsservice\mywindowsservice\bin\practiceservice.exe assembly's progress. The file is located at d:\practice in...
0
1462
by: Morgan Cheng | last post by:
I have one webservice written in MC++, which uses another native DLL deployed in %webservice_install_dir%\bin folder. The API invocation between MC++ and native C++ looks seamless. The compilation is fine. However, after deployment, each request fails with "The specified module cound not found" exception. It turns out to be the Managed assembly is copied to someplace at runtime. In my machine, it is "C:\WINDOWS\Microsoft.NET\Framework...
0
2439
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
7920
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8401
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...
1
8054
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
8268
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
6730
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5867
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5440
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3900
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
1254
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.