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
Post a Comment