Call to webservice doesn't wait to return

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top