What are Transport methods in SOAP? - SOAP

What are transport methods in SOAP?

1. Different application running on different types of operating systems and using different technologies.
2. Example : To find company details, a SOAP request GetCompanyDetail() is sent to the server with the company id as the parameter. In response, details of company are returned via XML.

SOAP request
<?xml version="1.0"?>
<soap:Envelope
xmlns:soap=http://www.w3.org/2001/12/soap-envelope
soap:encodingStyle="http://www.abc.org/2001/12/soap-encoding">
<soap:Body xmlns:m="http://www.example.org/ company ">
<m: GetCompanyDetail >
<m:CompanyID>1234></m:CompanyID >
</m: GetCompanyDetail >
</soap:Body>
<soap:Envelope>

SOAP response
<?xml version="1.0"?>
<soap:Envelope
xmlns:soap=http://www.w3.org/2001/12/soap-envelope
soap:encodingStyle="http://www.abc.org/2001/12/soap-encoding">
<soap:Body xmlns:m="http://www.example.org/company">
<m: GetCompanyDetailResponse>
<m:name>ABC</m:name>
<m:revenue>20000</m:revenue>
</m: GetCompanyDetailResponse >
</soap:Body>
</soap:Envelope>

What are Transport methods in SOAP?

Application layer and transport layers of a network are used by SOAP. SMTP and HTTP are the valid application layer protocol uses as transport for SOAP. Wider acceptance is gained by HTTP, as it works better with the current internet infrastructure, especially with firewalls.
Role of XML in SOAP - SOAP
XML is used as the common format for data in cross platform applications. This file is used for representing message for communication...
Elements that should be contained in SOAP message? - SOAP
The following are contained in SOAP messages: Envelope, Header, Body, Fault element......
What is SOAP Envelope element? - SOAP
SOAP envelope element is the root element used to define the XML document as a SOAP message.......
Post your comment