Call to webservice doesn't wait to return

  • Thread starter Thread starter shailesh
  • Start date Start date
S

shailesh

Hi All,

I have created a ASP.NET web service with a web method. This method
retrives data from SQL Server and returns it as an XML string. Now I have
added a web reference to this web service in a VC++ 7.1 (unmanaged) project.
I call the web method in my VC++ code. The problem I am facing is that the
line next to the line that calls the web method is executed even before the
call to the web method returns, causing inconsistencies in my code. I would
like to know how I can make the execution wait till the call to the web
method returns? Sample code will help a lot.

Regards.
Shailesh.
 
shailesh said:
Hi All,

I have created a ASP.NET web service with a web method. This method
retrives data from SQL Server and returns it as an XML string. Now I have
added a web reference to this web service in a VC++ 7.1 (unmanaged) project.
I call the web method in my VC++ code. The problem I am facing is that the
line next to the line that calls the web method is executed even before the
call to the web method returns, causing inconsistencies in my code. I would
like to know how I can make the execution wait till the call to the web
method returns? Sample code will help a lot.
Have you insured it is actually executing, and not simply a problem with the
debugger?
 
Back
Top