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

问题描述

在网络服务基础中,我听说过SOAP"和KSOAP".

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

  • 什么是 SOAP 和 KSOAP?
  • 它们之间有什么区别?
  • 为什么我应该使用一种而不是另一种?

推荐答案

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

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

因此,KSOAP 是专门为处理移动设备等小型嵌入式设备而设计或开发的.

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

SOAP - 大多数企业级 SOAP 工具包通常依赖于使用 Web 服务描述语言 (WSDL) 生成的代理对象来进行函数调用.如果服务具有已发布的描述并且工具包需要实例化多个不同的客户端和传输对象,这将非常有用.

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 - 虽然 kSOAP 不支持 WSDL,但它确实使调用服务变得相对轻松.只需要两个对象:SOAPObject 和 Http-Transport.

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.

结论 - SOAP 是一个需要探索的非常复杂的领域,尤其是用于在不同系统、语言和工具包之间传输数据的 XML 机制.无线世界需要身材矮小、功能强大的工具.幸运的是,就 SOAP 而言,kSOAP 工具包不仅提供了小尺寸和强大的功能,而且还为开发人员提供了相对的简单性和易用性.使用 kSOAP,开发人员可以在极短的时间内开发复杂的 SOAP Web 服务客户端.

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 的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-10 08:07