M
Mike C#
Hi all,
Having an issue. I created a simple web service and a proxy class. I'm
calling the web service asynchronously (from an ASP.NET page) using the
Begin... and End... methods of the proxy class. It appears to work properly
until I get to the callback function. As soon as I try to cast the
IASyncResult and call the End... method it stops executing at the CType
function and exits the callback procedure. The Web Service is very simple -
basically it has one method called "GetSingle" that returns a string. The
proxy class adds the BeginGetSingle and EndGetSingle methods. Here's the
code for the callback:
Private Sub Callback(ByVal iar As IAsyncResult)
Dim p As localhost.AsyncWebSvc = CType(iar, localhost.AsyncWebSvc)
' It never gets to this line, where I would retrieve the results. The
line above
' stops the processing for some reason. If I put a breakpoint on the
line below
' it never gets to it.
Dim s As String = p.EndGetSingle(iar)
Dim status As String = "Done"
End Sub
Any help is appreciated. Thanks!
Having an issue. I created a simple web service and a proxy class. I'm
calling the web service asynchronously (from an ASP.NET page) using the
Begin... and End... methods of the proxy class. It appears to work properly
until I get to the callback function. As soon as I try to cast the
IASyncResult and call the End... method it stops executing at the CType
function and exits the callback procedure. The Web Service is very simple -
basically it has one method called "GetSingle" that returns a string. The
proxy class adds the BeginGetSingle and EndGetSingle methods. Here's the
code for the callback:
Private Sub Callback(ByVal iar As IAsyncResult)
Dim p As localhost.AsyncWebSvc = CType(iar, localhost.AsyncWebSvc)
' It never gets to this line, where I would retrieve the results. The
line above
' stops the processing for some reason. If I put a breakpoint on the
line below
' it never gets to it.
Dim s As String = p.EndGetSingle(iar)
Dim status As String = "Done"
End Sub
Any help is appreciated. Thanks!