使用phonegap(ios)调用Web服务 [英] Calling web service using phonegap(ios)
问题描述
我想在phonegap应用程序中调用Web服务.我正在使用
I want to call web services in phonegap application. I am using demo code given at
http://wiki.phonegap.com/w/page/32513809/Simple-Web-Service-Consumption-with-PhoneGap-and-XUI
我已经从链接创建了xui.js
i have created xui.js from link
http://xuijs.com/downloads/xui-2.3.2.js
并尝试将xui.js,index.html分别放在www/assets和www文件夹中.
and tried both putting xui.js, index.html in www/assets and in www folder.
但是它对我不起作用.任何人都可以帮助我.....
But it is not working for me.Can any one help me please.....
推荐答案
尝试将*添加到PhoneGap.plist中的ExternalHosts选项中
如果您的应用无法连接到互联网/无法拨打xhr电话,则可能是这种情况
Try adding * to the ExternalHosts option in the PhoneGap.plist
This may be the case if your app could not connect to the internet/make xhr calls
这篇关于使用phonegap(ios)调用Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!