SOAP Stands SIMPLE OBJECT ACCESS PROTOCOL. Soap is most powerful and secure web service architecture. Soap will have two way communication between different request and responses.
It is more secure compare with REST. It has own set of properties to implement the structure of protocol.
The below code is for SOAP connection using PHP CURL.