我如何使用 phonegap for android 调用网络服务 [英] how do i call a webservice using phonegap for android

查看:27
本文介绍了我如何使用 phonegap for android 调用网络服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从我的 phonegap 应用程序进行网络服务调用?我找到了两个 javascript 库,一个来自 IBM,另一个来自 IvanWebService http://wiki.phonegap.com/w/page/43725416/SOAP%20Web%20Service 允许您进行此类调用,但我无法让它们运行我的任何网络服务.我正在传入一个 wsdl 链接作为服务链接,并且我已经更新了信封参数,但仍然没有.

How do I make a webservice call from my phonegap app? I found two javascript libraries one from IBM and another IvanWebService http://wiki.phonegap.com/w/page/43725416/SOAP%20Web%20Service that allow you to make such calls but i couldnt get them to run any of my webservices. I am passing in a wsdl link as the service link and i have updated the envelope parameters, still nothing.

推荐答案

如果是我,我会用 jQuery.

If it were me, I would use jQuery.

http://www.bennadel.com/blog/1853-Posting-XML-SOAP-Requests-With-jQuery.htmhttp://openlandscape.net/2009/09/25/call-soap-xm-web-services-with-jquery-ajax/http://weblogs.asp.net/jan/archive/2009/04/09/calling-the-sharepoint-web-services-with-jquery.aspx

这篇关于我如何使用 phonegap for android 调用网络服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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