使用phonegap(ios)调用Web服务

mit*_*esh 3 web-services ios phonegap-plugins cordova

我想在phonegap应用程序中调用Web服务.我正在使用给出的演示代码

http://wiki.phonegap.com/w/page/32513809/Simple-Web-Service-Consumption-with-PhoneGap-and-XUI

我从链接创建了xui.js.

http://xuijs.com/downloads/xui-2.3.2.js

并尝试将xui.js,index.html放在www/assets和www文件夹中.

但它对我不起作用.任何人都可以帮助我.....

gho*_*der 6

尝试将*添加到PhoneGap.plist中的ExternalHosts选项
如果您的应用无法连接到互联网/ make xhr,则可能出现这种情况

  • 嗨,伙计们,我解决了这个问题后,我写了一篇关于在PhoneGap中调用Web服务的博客http://kmithi.blogspot.in/2012/02/callling-web-services-in.html? (2认同)