Difference Between SOAP and KSOAP
Asked Answered
F

2

24

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?
Foreshorten answered 15/9, 2011 at 4:20 Comment(0)
P
33

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.

Procryptic answered 15/9, 2011 at 5:35 Comment(0)
M
8

KSOAP is a "lightweight and efficient SOAP library for the Android platform."
SOAP is a protocol used for building web services, and which defines a format used for the exchange of messages that uses XML as base.

You cannot use one instead of the other, as they are two different things: The first is the library necessary to use a protocol, and the second is the protocol used from the first.

Miguelinamiguelita answered 15/9, 2011 at 4:33 Comment(1)
+one Short & Sweet answer !!Target

© 2022 - 2024 — McMap. All rights reserved.