Hi there,
Hoping someone might have an idea of whats going on here, I presume I'm in the right forum but not 100%.
I have a java web service that I am using with a C# .NET client. Synchronously everything works fine, but Asynchronously I'm having problems.
Intermittently I am getting the following error message in the asynchronous event handler for the call:
"Unable to write data to the transport connection: An established connection was aborted by the software in your host machine"
The fact that it is intermittent is what is confusing me.
To be more precise I'm calling 3 asynchronous methods at once, 2 of which are the same web service operation but with different parameters, like so:
///////////////////////////// In Constructor
wsObject.getPoi ntCompleted += new getPointComplet edEventHandler( wsObject_getPoi ntCompleted);
wsObject.getPer iodCompleted += new getPeriodComple tedEventHandler (wsObject_getPe riodCompleted);
///////////////////////////// In a method call
try
{
wsObject.getPoi ntAsync(pointRe questOne, Guid.NewGuid()) ;
wsObject.getPoi ntAsync(pointRe questTwo, Guid.NewGuid()) ;
wsObject.getPer iodAsync(period Request, Guid.NewGuid()) ;
}
catch (Exception e)
{
MessageBox.Show ("Server Side Exception - Operation failed");
}
Would it have anything to do with the fact that they are all being called one after the other in such close proximity?
Any advice is much appreciated,
Thanks,
James
1 1570
Sorry, should have mentioned, usually only 1 of the calls fail, occassionally 2 fail, and from memory I think they have been the 2 with the same web service call (don't think I ever remember the other one failing).
Thanks again.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Bryan |
last post by:
I have a multi-threaded C# console application that uses WMI
(System.Management namespace) to make RPC calls to several servers (600+ )
and returns ScheduledJobs. The section of my code that performs the query
is contained in a delegate function that I execute via a second thread. On 1
or 2 of the 600+ servers the query hangs. I've tried to use Thread.Join()
coupled with a Thread.Abort() but this does not kill the thread.
Based on...
|
by: belgiozen |
last post by:
Hi,
I have a working windows service,it is looking for files on the disk
and when some of the files are cupdated it calls an executable. But it
takes a lot of time(about 10 minutes) to run the executable.So while
that executable is running,if I try to stop the windows service while
the executable(MYPROGRAM.EXE) is running,it will wait for a time(about
20 seconds) for the main windows thread to abort.If it does not finish
its work, the...
|
by: |
last post by:
How can I handle an error while I calling web service asynchronously?
|
by: han zhiyang |
last post by:
I've just studied the "how to" web service and the async pattern in donnet.I
make a test with these knowledges,but I got a strange result. Here is my
test.
1.Write a simple "Add" service named MathWS( the class name),and put it in a
..asmx file named math.asmx in the "D:/winnt/interpub/wwwroot/mathws"
directory. "mathws" is my new-built directory.
2.run the http://localhost/mathws/math.asmx,find it works well,and run run
the...
|
by: han zhiyang |
last post by:
I have two new questions.
1. my exception handling codes works well when I synchronously call a web
service,but How can I use it in asynchronously calling? I tried in the same
way,but when error happened,my main programe is always waiting the response
from the service,but nothing is returned,until I terminate it by myself.Any
help on "how to" ,thanks.
2.I found the web.config file in asp.net somewhat confusing.I work under the
version 2...
| |
by: dba123 |
last post by:
Do I :
1) use a Delegate which calls my method below (the method below is using the
EnterpriseLibrary.Data namespace for 2.0)
or
2) Use some sort of implementation of BackGroundWorker
(http://www.devx.com/dotnet/Article/22358/1954?pf=true) in
System.ComponentModel to perform a call to my method asynchronously?
|
by: Ginny |
last post by:
Hi,
I have a simple web service that returns a dataset. Its very simple. i call
the web service from a windows app. it works abosolutely fine when i can the
web service method synchronously. but when i try to call the method
asynchronosuly using the 'beginxxx' and 'endxxxx' it does not give any error
but at the same time, the datagrid on the form does not show any data as
well. the only code in my windows form is menitoned below. Kindly if...
|
by: John Skandar |
last post by:
I've found a free WebService on the net for a currency converter and have
created a class to use it with the WSDL tool.
I call the WebService method asynchronously:
converter.ConversionRateAsync((Currency)fromCurrencyComboBox.SelectedIndex,
(Currency)toCurrencyComboBox.SelectedIndex);
Where do I have to put the catch instruction?
If I try to run the instruction above when I am not connected to the
|
by: =?Utf-8?B?aWFtc2Rr?= |
last post by:
I have a windows client that calls web service 1 (Broker) synchronously, web
service 1 then calls web service 2 (Service) asynchronously, web service 2
sleeps its thread for 10 seconds. When I put a stopwatch on the windows
client the call to web service 1 takes a fraction over 10 seconds. What I
would think would happen is that I would get a return from web service 1
alsmost instantly. When I attach the debugger to web service 1, I even...
|
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...
|
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,...
| |
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...
|
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...
|
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...
|
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();...
|
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...
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |