SOAP和KSOAP之间的差异 [英] Difference Between SOAP and KSOAP

查看:180
本文介绍了SOAP和KSOAP之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在网络服务的根本,我听说过SOAP和KSOAP。

  • 什么是SOAP和KSOAP?
  • 它们之间的区别是什么?
  • 为什么要使用一个,而不是其他呢?
解决方案
  

SOAP - SOAP是用来描述消息的XML词汇和   分布式components.Any现代之间的远程过程调用   随着互联网的工作语言是有可能同时支持XML   和HTTP。

     

KSOAP - KSOAP是基于kXML外,一个SOAP API,其中使用kXML是   轻量级的基于Java的XML解析器设计为在有限的运行,嵌入式   系统如个人移动设备。这是一个拉解析器   意味着它读取文档的一点点一下子

所以,KSOAP是专门设计或开发,以解决诸如移动设备的小型嵌入式设备。


SOAP - 大多数企业级的SOAP工具包通常依赖于使用Web服务描述语言(WSDL)生成的代理对象进行函数调用。如果一个服务有一个公布描述并且当工具箱需要若干不同的客户端和传送对象的实例化,这是很有用的。

KSOAP - 虽然KSOAP不支持WSDL,它确实让调用服务相对简单。只有两个对象是必需的:在SOAPObject和HTTP-运输

结论 - SOAP可以是一个非常复杂的领域进行探索,特别是用于不同的系统,语言和工具之间传输数据的XML机制。无线世界需要的小身材和大国的工具。幸运的是,当涉及到SOAP,该KSOAP工具包不仅提供小尺寸和强大的功能,而且还相对简单,易于使用的开发者。使用KSOAP,开发人员可以在很短的时间内开发出复杂的SOAP Web服务客户端。

In web-service fundamental, I have heard about "SOAP" and "KSOAP."

  • What are SOAP and KSOAP?
  • What is the difference between them?
  • Why should I use one instead of the other one?

解决方案

SOAP - SOAP is an XML vocabulary used to describe messaging and remote procedure calls between distributed components.Any modern language that works with the Internet is likely to support both XML and HTTP.

KSOAP - KSOAP is a SOAP API based on kXML,where kXML is a lightweight Java-based XML parser designed to run on limited, embedded systems such as personal mobile devices. It is a pull parser which means it reads a little bit of the document at once

So, KSOAP was specially was designed or developed to deal with small embedded device like mobile devices.


SOAP - Most enterprise-level SOAP toolkits often rely on the use of a Web Services Description Language (WSDL) generated proxy object to make function calls. This is useful if a service has a published description and when the toolkit requires the instantiation of several different client and transport objects.

KSOAP - While kSOAP doesn't support WSDL, it does make calling a service relatively painless. Only two objects are required: the SOAPObject and Http-Transport.

CONCLUSION - SOAP can be a very complex realm to explore, especially the XML mechanisms used to transfer data between disparate systems, languages, and toolkits. The wireless world requires tools of small stature and great power. Luckily when it comes to SOAP, the kSOAP toolkit provides not only small size and great functionality, but also relative simplicity and ease of use for the developer. Using kSOAP, a developer can develop complex SOAP Web services clients in a remarkably short time.

这篇关于SOAP和KSOAP之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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