c# - Async call to a WebService method (Completed() methods not created) -


i'm using vs2013 ultimate on windows 8.1 create metro app consumes data webservice (the webservice methods not marked async).

i've seen lot of examples on here using async() , completed() methods but:

once add service reference service contains [methodname]async() methods can't find anywhere [methodname]completed() methods.

clientwebservicesoapclient service = new clientwebservicesoapclient(); service.openasync( ); task<callmethodresponse> methodtask = service.callmethodasync(new callmethodrequest(new callmethodrequestbody("parama", "paramb", ""))); bool returnvalue = methodtask.result.body.callmethodresult; service.closeasync(); 

this, obviously, not work.

how can result of callmethodasync() if don't have possibility put handler on callmethodcompleted()?

and also, why i'm not having completed() methods?


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -