How does Simple Object Access Protocol (SOAP) help in Internet Communication
The main reason for the design of SOAP by Microsoft was to facilitate the utilization of the web services provided by one application for use by another, irrespective of the object model, operating system or language in which both the applications are created. With this, a widely distributed, complex computing environment can be created leveraging on the existing internet infrastructure. SOAP enables component based services over the Internet so that Web services are available for a wide range of users achieving code re-use using Black box techniques.
RPC (Remote Procedure Call) protocols like DCOM, CORBA, etc. which are
object model specific and not compatible with internet, SOAP is based
on XML using HTTP protocol which is supported by all browsers and servers.
Although SMTP is also a valid protocol layer for SOAP, it is often used
with HTTP as a protocol layer making it easier to communicate through
firewalls and proxies. To understand the simplicity of SOAP, it is better
to know about how it works:
Similar to a HTTP message packet that has its own message format maintained for communication, a SOAP message has the following sections:
: to identify that the XML document is a SOAP message (mandatory)
Communication using SOAP
The three main components involved in the SOAP communication over the internet are as below:
The SOAP client sends a SOAP request similar to that of below sample over HTTP through the internet. The SOAP server recognizes the request as a SOAP request and routes to its service manager (after checking whether the service is listed in the server), which then forwards it to the XML Translator. This XML translator decodes the method (service) to be invoked on the COM component (or the Java bean) and translates the result back to XML format to be sent as response. Thus, a high level of encapsulation of implementation of the service is achieved which makes it easier for applications to be interoperable.
Sample SOAP Request
The main limitation of SOAP is that due to its verbose XML data, the performance can be a drawback in cases where bulk data has to be transmitted. It is suggested to use MTOM (Message Transmission Optimization Mechanism) concepts to embed binary objects in messages in such cases.
In its simple and versatile nature of development, SOAP has provided a facility to achieve interoperability among widely distributed web based enterprise applications cutting down the development time, cost, and leveraging on existing applications and resources.
to our mailing list and receive new articles Note
: We never rent, trade, or sell my email lists to Visit
.NET Programming Tutorial Homepage ______________________________________________________
to our mailing list and receive new articles
: We never rent, trade, or sell my email lists to
Visit .NET Programming Tutorial Homepage
|Designing applications in .Net using Service Oriented Architecture | How to Create and Use Anonymous Delegates in C# (C Sharp) |How to Define Custom Attributes in C# (C Sharp)| How To Handle Errors While Developing ASP.NET Applications | How to Use Indexer in Classes and Interfaces of C# (C Sharp)| Illustration of Access Keywords (base, this) with Examples in C# (C Sharp) | Illustration of Null Coalesce Operator (??) in C# (C Sharp) |Indexers Vs Properties in C# (C Sharp) | More about Reserved Attributes of C# (C Sharp)| Overview of Unified Type System of C# (C Sharp) | Purpose of Delegates in C# (C Sharp) |How does Simple Object Access Protocol (SOAP) help in Internet Communication |How to Create and Use Anonymous Delegates in C# (C Sharp)|
Amazon and the Amazon logo are trademarks of Amazon.com, Inc. or its affiliates.
Copyright - © 2004 - 2023 - All Rights Reserved.