SOAP

SOAP : Simple Object Access Protocol

SOAP is a communication protocol for accessing web services or communication between applications.SOAP is platform/language independent and communicates via internet. SOAP is XML based.

SOAP supports applications running in different application, with different technologies and different programs.

SOAP is a XML message with below elements.

  • Envelope : Root element of SOAP message
  • Header:Application specific information
  • Body: Actual soap message
  • Fault:Indicates the error message. It contains faultcode,fault string,faultactor and deatil etc

Syntax:

  • Encoded using XML
  • Use SOAP Envelope namespace
  • Use SOAP encoding namespace
  • Must not contain DTD

The best way to communicate between applications is over HTTP since HTTP is supported by all Internet browsers and servers. so SOAP was created to support this.

SOAP HTTP binding:

SOAP requests are sent via HTTP request and response sent within HTTP response.After establishing a connection the client can send a HTTP request to server.

The Content-Type header for a SOAP request and response defines the MIME type for the message and the character encoding

Syntax:

Example:

server processes the request and send back the HTTP response.

Standard HTTP response code:

200: success response
400: bad request

SOAP Example:

© 2015, www.techkatak.com. All rights reserved.