vb.net - Visual Studio 2012/Windows Phone 8 get results from Async Web Service -
so i'm working on windows phone 8 app (completely new windows phone 8 well) , i'm having trouble trying figure out how results asynchronous web service method right code tried fails , says "expression not produce value". here's code tried:
'get previous date dim pdate datetime pdate = datetime.today.adddays(-1) dim previousdate string = pdate.tostring("d") dim service new mobileservice.mobileservicesoapclient dim results new list(of string)() results.addrange(service.geterrortableasync(deviceidasstring, previousdate))
so geterrortable web service returns xml set of results , ios app can parse xml file create array of values (if exist) can't seem find consistent answer on how same windows phone/vb. guides or tutorials helpful since have web services return large array of objects , return single value.
there should callback delegate function geterrortableasync
, called geterrortablecomplete
. add handler delegate. names might diff should close enough find them on service object.
addhandler service.geterrortablecomplete addressof geterrortablecompleted service.geterrortableasync(deviceidasstring, previousdate) private sub geterrortablecompleted(sender object, e mobileservice.geterrortablecompleteeventargs) 'now can access e.results end sub
Comments
Post a Comment