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

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

问题描述

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

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 与直接从浏览器调用它是一样的(但你必须考虑相同的 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 与 webservice 端交谈,将一些简化的 json 发送到您的手机,或者您可以查看 ibm 的本教程,该教程描述了如何直接从 javascript 调用 webservice:http://www.ibm.com/developerworks/webservices/library/ws-wsajax/

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天全站免登陆