NativeScript中的SOAP Web服务 [英] SOAP Web Services in NativeScript

查看:62
本文介绍了NativeScript中的SOAP Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是nativescript应用程序开发的新手,我想在nativescript中使用SOAP Web服务,即如何实现SOAP request&本机脚本中的响应.请给我建议,找不到实现SOAP的任何方法,所有搜索结果均以JavaScript代码实现.

I am new in nativescript app development, I want to use SOAP web services in nativescript, i.e how to implement SOAP request & response in nativescript. Please give me suggestions, didn't find any way to implement SOAP, all search results are implemented in JavaScript code.

我确实打开了github问题,请检查- https://github.com/NativeScript/NativeScript /issues/2284 谢谢:)

I do open github issues, please check - https://github.com/NativeScript/NativeScript/issues/2284 Thanks :)

推荐答案

好吧,它们不是内置的肥皂处理功能.但是,您可以通过几个步骤使自己拥有.

Well, their is no built in soap handling. However, you can make you own in a couple steps.

  1. NativeScript内置了http请求以及XMLHttpRequest和Fetch;这意味着您可以从任何服务URL查询和接收所需的数据. http://docs.nativescript.org/api-reference/modules/ http .html https://docs.nativescript.org/cookbook/fetch http://docs.nativescript.org/cookbook/http

此外,他们是一个名为nativescript-apiclient的第三方插件,可以更轻松地处理带有更改参数的http请求. (即 http://somewhere/getdata/ {token}/{data},您可以在其中传递令牌并数据值...)有关可用的不同插件,请参见 http://plugins.nativescript.rocks .

In addition, their is a third party plugin called nativescript-apiclient which makes it easier to deal with http requests with changing parameters. (i.e. http://somewhere/getdata/{token}/{data} where you can just pass in a token and data value...) See http://plugins.nativescript.rocks for different plugins available.

NativeScript具有内置的XML解析器,Soap响应通常基于XML.因此,您可以轻松地实例化xml引擎来解析您的soap请求( http://docs.nativescript.org /cookbook/xml-parser )

NativeScript has a XML parser built in, Soap responses are typically XML based. So you can easily instantiate the xml engine to parse your soap requests (http://docs.nativescript.org/cookbook/xml-parser)

这篇关于NativeScript中的SOAP Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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