473,405 Members | 2,262 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,405 software developers and data experts.

Async WS ??

Ken
I´m a newbie in ASYNC WS.. I'm trying with a simplest one, but I notice that
there is no way to make the WS tell the program that is not connection at
all, so if I unplug the internet the WS goes and back like if nothing happend

Where can I start?

Ken
Nov 21 '05 #1
3 1234
Can you restate your question? Do you have an async web service working?

And it's nothing on the web service that makes it async, it's how the client
is configured.

Jeff

"Ken" <Ke*@discussions.microsoft.com> wrote in message
news:67**********************************@microsof t.com...
I´m a newbie in ASYNC WS.. I'm trying with a simplest one, but I notice that there is no way to make the WS tell the program that is not connection at
all, so if I unplug the internet the WS goes and back like if nothing happend
Where can I start?

Ken

Nov 21 '05 #2
Ken
Sure:
I have a async Web service working inside a Try block

Try
Dim cb As New AsyncCallback(AddressOf callbackWs)
Dim ar As IAsyncResult = myWS.BeginUpdater("ChainString", cb, myWS)
Catch x As Exception
MessageBox.Show("Something happened")
End Try

Also I have a Callback routine

Sub callbackWs(ByVal ar As IAsyncResult)
If ar.IsCompleted Then
myWS.EndUpdater(ar)
End If
End Sub

the problem is that when internet is unavailable or I unplug the cable or I
move the WS to another location the call to the WS does not get into the Try
block...It does nothing, so I dont know what happened.

ken
Nov 21 '05 #3
What do you mean "does nothing"? Have you stepped into the code? Set a
breakpoint on the Try.

Jeff
"Ken" <Ke*@discussions.microsoft.com> wrote in message
news:ED**********************************@microsof t.com...
Sure:
I have a async Web service working inside a Try block

Try
Dim cb As New AsyncCallback(AddressOf callbackWs)
Dim ar As IAsyncResult = myWS.BeginUpdater("ChainString", cb, myWS)
Catch x As Exception
MessageBox.Show("Something happened")
End Try

Also I have a Callback routine

Sub callbackWs(ByVal ar As IAsyncResult)
If ar.IsCompleted Then
myWS.EndUpdater(ar)
End If
End Sub

the problem is that when internet is unavailable or I unplug the cable or I move the WS to another location the call to the WS does not get into the Try block...It does nothing, so I dont know what happened.

ken

Nov 21 '05 #4

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

Similar topics

8
by: Dave | last post by:
I'm using the BeginInvoke method of a delegate to invoke a thread asynchronously and then use the EndInvoke to retrieve the value. This works wonderfully until a Serviced Component is added to...
6
by: Vanessa | last post by:
I have a question regarding async mode for calling Microsoft.XMLHTTP object. Microsoft.XMLHTTP hangs the IE once in a while suddenly, but it will work again after half an hour or so without doing...
0
by: Passynkov, Vadim | last post by:
I am using Asynchronous Query Processing interface from libpq library. And I got some strange results on Solaris My test select query is 'SELECT * from pg_user;' and I use select system...
10
by: Shawn Meyer | last post by:
Hello - I am trying to write a class that has an async BeginX and EndX, plus the regular X syncronous method. Delegates seemed like the way to go, however, I still am having problems getting...
8
by: TS | last post by:
Im in a web page and call an asynchronous method in business class. the call back method is in the web page. When page processes, it runs thru code begins invoking the method then the page...
1
by: Simon Hart | last post by:
Hi, I thought I'd just open a thread in an attempt to get peoples feelers with regards to multithreading vs Async Web Service processing. Of course Web Services makes it easy to do Async...
6
by: gabriel.landais | last post by:
Hi, I'm currently building a parser class in JS and I have a question about variables. I retrieve XML data and then process it. After that, I process a result array (mydataarray). It looks like...
6
by: Shak | last post by:
Hi all, Three questions really: 1) The async call to the networkstream's endread() (or even endxxx() in general) blocks. Async calls are made on the threadpool - aren't we advised not to...
7
by: Shak | last post by:
Hi all, I'm trying to write a thread-safe async method to send a message of the form (type)(contents). My model is as follows: private void SendMessage(int type, string message) { //lets...
10
by: Frankie | last post by:
It appears that System.Random would provide an acceptable means through which to generate a unique value used to identify multiple/concurrent asynchronous tasks. The usage of the value under...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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...
0
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,...
0
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...

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.