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
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
> 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
Ken - 11 Nov 2004 22:31 GMT
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
Jeff Dillon - 15 Nov 2004 13:50 GMT
What do you mean "does nothing"? Have you stepped into the code? Set a
breakpoint on the Try.
Jeff
> Sure:
> I have a async Web service working inside a Try block
[quoted text clipped - 19 lines]
>
> ken