what does soap do code example

Example 1: what is soap

It has strict rule on how to send request and response.

Soap Request use XML format to send and receive response

Only method allowed in SOAP is POST

The content type is always xml

Body is enclosed in envelop like structure for example :

Sample Post request to turn number into word

POST https://www.dataaccess.com/webservicesserver/NumberConversion.wso

Header : text/xml; charset=utf-8

Body :



  
    
      123456789
    
  

Response



    
        
            one hundred and twenty three million four hundred and fifty six thousand seven hundred and eighty nine 
        
    

Example 2: what is soap service

it stands for Simple Object Access Protocol.
Basically it's an xml based messaging protocol.
It helps in exchaging information among computers.

Tags:

Misc Example