The SOAP protocol is concerned with using XML to represent messages and use the underlying protocol to communicate them. SOAP could be used on top of different protocols including HTTP, SMTP, TCP or UDP.
SOAP supports two modes of interactions: client-server (RPC) and asynchronous.
• The more commonly used messaging pattern is the RPC pattern. In this mode, SOAP describes how XML is used to represent the contents of request and reply message. RPC use the synchronous HTTP POST method for exchange the messages.
• Asynchronous pattern separates the request and response messages in time. They could be implemented as two unidirectional messages. After the application sends a SOAP request, it does not block and wait for the response. Instead, the sender gets notified when the receiver receives the message. SOAP header contains a message ID to correlate the messages.
SOAP message may be used in two different ways:
• SOAP defines a scheme for the communication of documents. The SOAP message has the document to be communicated placed inside the SOAP body element. SOAP message used to convey a document could be sent either synchronously or asynchronously.
• For RPC mode, the SOAP message has the RPC request and response elements placed in the SOAP body. Our current implementation of SOAP message is based on RPC.
Thursday, November 15, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment