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.