Messaging Styles: RPC
  • In an RPC-style SOAP message:
    • The client application sends a request to the server in the form of a method call.
    • The web service server processes the request and returns a value to the client application.
    • The messaging is synchronous because it follows the call-response form of communication.

In the code example, the getStock method is invoked with Jane Austin as its parameter.

<?xml version="1.0"?>

<Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope" encodingStyle="http://www.w3.org/2001/12/soap-encoding">

  <Header>
    ...
    ...
  </Header>

  <Body>
    <m:getStock xmlns:m="urn:xmethods:example">
      <m:Symbol>
        Jane Austin
      </m:Symbol>
    </m:getStock>
  </Body>

</Envelope>
Click the Next button to continue.