简体   繁体   English

IONIC Framework(AngularJs和JavaScript)| 是推荐基于SOAP的Web服务?

[英]IONIC Framework (AngularJs & JavaScript) | is SOAP based web-service recommended?

I am going to use SOAP based web-service for one of my project. 我将为我的一个项目使用基于SOAP的Web服务。 (IONIC framework is based on AngularJS and they have written SOAP client in JavaScript) (IONIC框架基于AngularJS,他们用JavaScript编写了SOAP客户端)

My Question are: 我的问题是:

  1. Is SOAP based web-services recommended using javascript? 是否使用javascript推荐基于SOAP的Web服务?
  2. Will there be any performance issue ? 会有任何性能问题吗?
  3. What type/kind of issues, i will face during development? 在开发过程中我将面临哪些类型/类型的问题?

thanks, Aleem 谢谢,艾利姆

SOAP is not recommended because it's XML based. 建议不要使用SOAP,因为它是基于XML的。

REST is a recommended approach because it is usually based on JSON, which is a native JavaScript format. REST是一种推荐的方法,因为它通常基于JSON,这是一种原生的JavaScript格式。

With SOAP you will incur overhead of constant JSON / XML conversion. 使用SOAP,您将产生持续JSON / XML转换的开销。

Here is a comparison: http://spf13.com/post/soap-vs-rest 这是一个比较: http//spf13.com/post/soap-vs-rest

Is SOAP based web-services recommended using javascript? 是否使用javascript推荐基于SOAP的Web服务?

It depends on your application you are working on. 这取决于您正在处理的应用程序。 If you want security in your application like your are build app for payment system or something then SOAP will be recommended. 如果您希望应用程序中的安全性,例如您的支付系统构建应用程序或其他东西,那么将建议使用SOAP。 But you need to compromise in performance. 但是你需要在性能上妥协。 You can also add security by using Oauth or any third party library. 您还可以使用Oauth或任何第三方库来添加安全性。

Will there be any performance issue ? 会有任何性能问题吗?

Yes if you compare SOAP performance with Rest then SOAP load time is more than rest api. 是的,如果您将SOAP性能与Rest进行比较,则SOAP加载时间大于rest api。 Because in SOAP we first load xml of service then hit exact function. 因为在SOAP中我们首先加载xml服务然后点击确切的函数。

What type/kind of issues, i will face during development? 在开发过程中我将面临哪些类型/类型的问题?

I think you can do whatever you want with SOAP. 我认为你可以用SOAP做任何你想做的事情。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM