c# - How to call a webservice from windows phone 6.5? -
i have following problem, try call web service windows phone 6.5 while connected active sync desktop computer, in development debug environment.
so dont have wlan connected on phone, maybe problem?
but when connected desktop pc, usb (windows mobile device center) can browse web , can acess ?wsdl meta data on phone - web service. webservice running on computer windows service.
i use simple web reference local webservice:
private void button2_click(object sender, eventargs e) { var method = new mobilecashier.testreference.yvestransfer(); method.timeout = 30000; bool bresult, bresultspec; method.testconnection(out bresult,out bresultspec); messagebox.show(bresult.tostring()); messagebox.show(bresultspec.tostring()); method.dispose(); }
but when run on phone in debug mode (or not debug) error:
"no connection made because target machine actively refused it"
if run windows exe app on desktop computer(the same deploy on phone), or desktop computer there no problem.
maybe need wlan make accept calls?
can 1 me please?
yes need wlan activated on cell access local webservice, should in same network of desktop machine.
i rather use other wlan connected machine test webservice on machine, , sure of it, may write small testbed app check webservice.
you can open webservice wsdl page on phone, , see if opens well, code must able call webservice desktop's hosted webservice.
Comments
Post a Comment