Basics of SOAP - Simple Object Access Protocol - GeeksforGeeks (2025)

Last Updated : 21 May, 2024

Summarize

Comments

Improve

Simple Object Access Protocol(SOAP) is a network protocol for exchanging structured data between nodes. It uses XML format to transfer messages. It works on top of application layer protocols like HTTP and SMTP for notations and transmission. SOAP allows processes to communicate throughout platforms, languages, and operating system, since protocols like HTTP are already installed on all platforms. SOAP was designed by Bob Atkinson, Don Box, Dave Winer, and Mohsen Al-Ghosein at Microsoft in 1998. SOAP was maintained by the XML Protocol Working Group of the World Wide Web Consortium until 2009.

Message Format

SOAP message transmits some basic information as given below

  • Information about message structure and instructions on processing it.
  • Encoding instructions for application-defined data types.
  • Information about Remote Procedure Calls and their responses.

The message in XML format contains four parts-

  • Envelope: This specifies that the XML message is a SOAP message. A SOAP message is an XML document containing a header and a body, both encapsulated within the envelope. Any fault is included within the body of the message.
  • Header: This part is optional. When present, it can provide crucial information about the applications.
  • Body: This contains the actual message being transmitted. Faults are contained within the body tags.
  • Fault: This optional section contains the status of the application and any errors. It should not appear more than once in a SOAP message.

Sample Message

xml
Content-Type: application/soap+xml<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"> <env:Header> <m:GetLastTradePrice xmlns:m="Some-URI" /> </env:Header> <env:Body> <symbol xmlns:p="Some-URI" >DIS</symbol> </env:Body></env:Envelope>

Advantages of SOAP

  • SOAP is a light weight data interchange protocol because it is based on XML.
  • SOAP was designed to be OS and Platform independent.
  • It is built on top of HTTP which is installed in most systems.
  • It is suggested by W3 consortium which is like a governing body for the Web.
  • SOAP is mainly used for Web Services and Application Programming Interfaces (APIs).


Next Article

What is the use of Proxy Object in JavaScript ?

O

omkarchalke

Basics of SOAP - Simple Object Access Protocol - GeeksforGeeks (1)

Improve

Article Tags :

  • Web Technologies
  • HTML and XML
  • Web technologies-HTML and XML

Similar Reads

  • Basics of SOAP - Simple Object Access Protocol Simple Object Access Protocol(SOAP) is a network protocol for exchanging structured data between nodes. It uses XML format to transfer messages. It works on top of application layer protocols like HTTP and SMTP for notations and transmission. SOAP allows processes to communicate throughout platforms 2 min read
  • What is the use of Proxy Object in JavaScript ? In JavaScript, the Proxy object acts as a assistant for objects, allowing fine-grained control over their behavior when accessing or modifying properties. With Proxy, you can customize an object's behavior, enforcing specific rules or implementing special actions. For instance, you might employ a Pr 2 min read
  • How to get dynamic access to an object property in JavaScript ? In JavaScript, an object is a collection of properties, where each property consists of a key-value pair. Objects are a fundamental data type in JavaScript. You can create an object in JavaScript in the following ways: By using the object literal notation, which is a comma-separated list of key-valu 7 min read
  • How to Access XML Data via JavaScript ? XML stands for Extensible Markup Language. It is a popular format for storing and exchanging data on the web. It provides a structured way to represent data that is both human-readable and machine-readable. There are various approaches to accessing XML data using JavaScript which are as follows: Tab 2 min read
  • How to Create an Object Without Class in PHP ? In PHP, creating an object without a class refers to creating an instance of the stdClass, a built-in PHP class for creating generic objects. It allows developers to instantiate objects without explicitly defining a custom class, often used for dynamic data storage. In this article, we will create a 3 min read
  • JavaScript Location protocol Property A network protocol defines rules and conventions for communication between network devices. By adopting these rules, two devices can communicate with each other and can interchange information. The protocol property sets or returns the protocol of the current URL, including the colon (:). Syntax: lo 1 min read
  • What are the uses of XMLHTTPRequest Object in Ajax ? In this article, we will know about the XMLHTTPRequest and how it can be useful for client-server request and properties of XMLHttpRequest. XMLHTTPRequest is an object that sends an HTTP request to the server and interacts with the server to open a URL and retrieve data without loading the complete 3 min read
  • Difference between REST API and SOAP API REST (Representational State Transfer) and SOAP (Simple Object Access Protocol) are the most common methods for communications. These services enable the web to communicate with the servers with HTTP protocol. REST is an architectural style that works over HTTP for communication, while SOAP is a pro 2 min read
  • How to add API function to a simple PHP Page ? Application Programming Interface is a system that contains a set of rules or protocols or tools which help in providing interaction between two applications or software by standard data access. It is very much similar to a web service used in developing web pages or mobile apps. One application can 4 min read
Basics of SOAP - Simple Object Access Protocol - GeeksforGeeks (2025)

References

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Dong Thiel

Last Updated:

Views: 6139

Rating: 4.9 / 5 (79 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Dong Thiel

Birthday: 2001-07-14

Address: 2865 Kasha Unions, West Corrinne, AK 05708-1071

Phone: +3512198379449

Job: Design Planner

Hobby: Graffiti, Foreign language learning, Gambling, Metalworking, Rowing, Sculling, Sewing

Introduction: My name is Dong Thiel, I am a brainy, happy, tasty, lively, splendid, talented, cooperative person who loves writing and wants to share my knowledge and understanding with you.