What is SOAP?

  • SOAP stands for Simple Object Access Protocol
  • SOAP is an XML-based protocol for exchanging information between computers.
  • SOAP provides data transport for Web services
  • SOAP is platform and language independent.

SOAP Message Structure 

 A SOAP message is an XML document containing the following elements.

  • Envelope: (Mandatory)
    • Defines the start and the end of the message, so that the receiver knows when an entire message has been received.
    • The SOAP envelope solves the problem of knowing when you're done receiving a message and are ready to process it.
  • Header: (Optional)
    • Contains any optional attributes of the message used in processing the message, either at an intermediary point or at the ultimate end point.
  • Body: (Mandatory)
    • Contains the XML data comprising the message being sent.
  • Fault: (Optional)
    • An optional Fault element that provides information about errors that occurred while processing the message

Sample SOAP Message 

<?xml version="1.0" encoding="UTF-8"?>



<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/

<CCRG_ContractSearchRQ xmlns="http://com.ccrgservices.services.
contractsearch" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
SearchType="Summary" xsi:schemaLocation="http://com.ccrgservices.
services.contractsearch CCRG_ContractSearchRQ.xsd"
RevenueIndicator="All" RentalStatus="All">
<ContractSearch Brand="Cars">
<DateRange Start="2012-05-20T00:00:00" End="2012-07-19T23:59:59"/>
<VehIdentification MVA="052815066"/>







No comments:

Post a Comment