473,511 Members | 14,825 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WebService consumer in .NET; synchronous calls and client timeouts...

All:

I have prepared a .NET 1.1 client application that consumes a remote,
public web service. All the functions work as expected, and, in
general, the application has been successful for my purposes.

I have discovered one bit of behavior that surprises me, however. At
certain times, under heavy server-side loads, my calls to certain web
service methods will time out on the *client* side (proxy timeout). My
assumption was that the client timeout would abort any pending
server-side call; however, I'm seeing evidence to suggest that the
server call eventually completes (much later), but worse causes the
client application to begin shift processing to the point immediately
after the call was made. At a minimum, this is unexpected (and
presumably not thread-safe) behavior.

Now, this seems to me to be turning what I'm expecting to be
*synchronous* calls into *asynchronous* calls, which is not what I
expect at all (and may be a deficiency of my own understanding). The
webservice design forces me to make certain calls in a specific order,
but if this async behavior is correct (and my expectations are wrong),
my assumptions about the integrity of my "call sequence" are faulty.

Should web service method calls that timeout through the client proxy
persist on the server side to completion? If so, upon completion,
should they unceremoniously shift execution to the point in the code
where the webservice call originated? That may be what its supposed to
do, but I also thought that's what the async BeginXXX/EndXXX calls were
supposed to be for, and that's not what I'm using.

Appreciate any feedback,

-intrepid

Jul 25 '06 #1
1 2003
<in*********@hotmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
All:

I have prepared a .NET 1.1 client application that consumes a remote,
public web service. All the functions work as expected, and, in
general, the application has been successful for my purposes.

I have discovered one bit of behavior that surprises me, however. At
certain times, under heavy server-side loads, my calls to certain web
service methods will time out on the *client* side (proxy timeout). My
assumption was that the client timeout would abort any pending
server-side call; however, I'm seeing evidence to suggest that the
server call eventually completes (much later), but worse causes the
client application to begin shift processing to the point immediately
after the call was made. At a minimum, this is unexpected (and
presumably not thread-safe) behavior.

Now, this seems to me to be turning what I'm expecting to be
*synchronous* calls into *asynchronous* calls, which is not what I
expect at all (and may be a deficiency of my own understanding). The
webservice design forces me to make certain calls in a specific order,
but if this async behavior is correct (and my expectations are wrong),
my assumptions about the integrity of my "call sequence" are faulty.

Should web service method calls that timeout through the client proxy
persist on the server side to completion? If so, upon completion,
should they unceremoniously shift execution to the point in the code
where the webservice call originated? That may be what its supposed to
do, but I also thought that's what the async BeginXXX/EndXXX calls were
supposed to be for, and that's not what I'm using.
The web is stateless, even for web services. The server has no idea that the
client has timed out. In fact, there is no "abort service in progress"
method.
John
Jul 26 '06 #2

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

Similar topics

17
14759
by: Patrick | last post by:
I am almost certain that I could use HTTP Post/Get to submit XML Web Service call (over SSL as well, if using Version 3 of MSXML2) from an ASP Application? However, would I only be able to call...
3
2182
by: David Sworder | last post by:
This message was already cross-posted to C# and ADO.NET, but I forgot to post to this "general" group... sorry about that. It just occured to me after my first post that the "general" group readers...
9
17980
by: David | last post by:
Hello I'm testing the XMLHttpRequest object in Firefox and IE. The code below works well in IE and Firefox. It shows "1" when the string is a number and "0" when not. The page aspxTest.aspx only...
7
2839
by: David Sworder | last post by:
Hi, I'm developing an application that will support several thousand simultaneous connections on the server-side. I'm trying to maximize throughput. The client (WinForms) and server communicate...
2
3451
by: Cory | last post by:
I'm trying to find the best way to communicate between an IE-viewed HTML page and a .NET Web Service. The only option that seems feasible for my needs is the WebService.htc behavior provided by...
1
2640
by: Jack Wright | last post by:
Dear All, I have observed that if I call a synchronous WebService from my aspx page then even if I set oProxy.TimeOut = 1000, the WebService thread execution is still running... Since my...
2
5683
by: Miguel | last post by:
Hi, I'm developing an application in C# with Windows Forms for my company that is similar to the MSN Messenger. This application uses a webservice for registering users, etc... and as 2...
4
1514
by: Stan | last post by:
When a webservice is called through BeginInvoke asynchrously and an exception is thrown, this exception is not propagated to the client (obviously). Asynch client simply does not care about it. ...
0
1388
by: Nogusta123 | last post by:
My web service has a single method called "CheckEligibility". This method can be used to check a person's eligibility for multiple products. Each product has different data requiements so each...
0
7371
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
7432
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...
1
7093
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...
0
7517
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...
0
4743
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...
0
3230
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...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1583
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 ...
0
452
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...

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.