Using SOAP Messages to Invoke RPC

This section provides some examples of using SOAP messages to invoke RPC.

Invocation of more complicated remote procedures requires SOAP messages. Here is an example.

Example 3 - A user wants to update prices of a list of part numbers in an inventory system with the following RPC:

   updatePrice(List=ArrayOfStructures)

The SOAP message to invoke the above RPC could look like:

<?xml version="1.0"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
 <env:Body 
    env:encodingStyle="http://www.w3.org/2003/05/soap-encoding"
    xmlns:enc="http://www.w3.org/2003/05/soap-encoding">
  <rpc:updatePrice enc:nodeType="struct"
     xmlns:rpc="http://www.herongyang.com">
   <rpc:List enc:arraySize="2">
    <rpc:item>
     <rpc:PartNumber>123</rpc:PartNumber>
     <rpc:Price>99.00</rpc:Price>
    </rpc:item>
    <rpc:item>
     <rpc:PartNumber>321</rpc:PartNumber>
     <rpc:Price>199.00</rpc:Price>
    </rpc:item>
   </rpc:List>
  </rpc:updatePrice>
 </env:Body>
</env:Envelope>

Last update: 2007.

Table of Contents

 About This Book

 Introduction to Web Service

 Introduction to SOAP (Simple Object Access Protocol)

 SOAP Message Structure

 SOAP Message Transmission and Processing

 SOAP Data Model

 SOAP Encoding

SOAP RPC Presentation

 What Is SOAP RPC Presentation?

 Using Web Methods to Invoke RPC

Using SOAP Messages to Invoke RPC

 RPC Response Messages

 SOAP Properties Model

 SOAP Message Exchange Patterns

 SOAP HTTP Binding

 SOAP Perl Implementations

 SOAP PHP Implementations

 SOAP Java Implementations

 Perl SOAP::Lite - SOAP Server-Client Communication Module

 Perl Socket Test Program for HTTP and SOAP

 Perl SOAP::Lite for GetSpeech SOAP 1.1 Web Service

 Perl SOAP::Lite 0.710 for SOAP 1.2 Web Services

 Perl SOAP::Lite 0.710 for WSDL

 PHP SOAP Extension Client Programs

 PHP SOAP Extension Server Programs

 Java Socket and HttpURLConnection for SOAP

 SAAJ - SOAP with Attachments API for Java

 SoapUI - SOAP Web Service Testing Tool

 WS-Security - SOAP Message Security Extension

 WS-Security X.509 Certificate Token

 Web Services and SOAP Terminology

 References

 PDF Printing Version