如何在iPhone中使用PhoneGap调用基于SOAP的Web服务? [英] How call SOAP based web-Service using PhoneGap in iPhone?

查看:145
本文介绍了如何在iPhone中使用PhoneGap调用基于SOAP的Web服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是PhoneGap的新手,我们的客户的要求是使用PhoneGap在iPhone中访问基于SOAP的Web服务,基本上使用javascript访问Web服务,任何帮助将不胜感激。

I am newbie for PhoneGap and our client's requirement is to access SOAP based web-service in iPhone using PhoneGap, basically accessing the web-service using javascript, any help would be appreciated.

推荐答案

使用phonegap调用webservice与直接从浏览器调用web服务相同(但是你必须考虑相同的orign策略)。

calling a webservice with phonegap is the same than calling it directly from your browser (but you have to think about the same orign policy).

这里要考虑的一些性能影响是很好的,因为在手机上处理javascript的大块xml可能会很慢。所以你可以使用某种类型的weserver来向web服务端发送一些简化的json到你的手机,或者你可以看看这个教程从ibm描述如何直接从javascript调用webservice:
http://www.ibm.com/developerworks/webservices/library/ws-wsajax/ < a>

Some performance implications are here to consider was well because processing big chunks of xml in javascript on mobile phones might be slow. So you could use some kind of weserver to talk to the webservice end send some simplified json to your phone or you can take a look at this tutorial from ibm describing how to call a webservice directly from javascript: http://www.ibm.com/developerworks/webservices/library/ws-wsajax/

这篇关于如何在iPhone中使用PhoneGap调用基于SOAP的Web服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆