Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2004

Tip: Looking for answers? Try searching our database.

Async WS ??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ken - 11 Nov 2004 16:59 GMT
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
Jeff Dillon - 11 Nov 2004 17:37 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.