Defining a Remote Method Call in XML

This section describes how a remote method call can be defined in XML format. The root element name is 'methodCall'.

The first item of the XML-RPC specification is about how to define a remote method call in XML.

XML-RPC defines a method call as an XML element called "methodCall". I have tried to find a copy of the official XML Schema Definition (XSD) of "methodCall". But I had no success. So I wrote one myself. It is definitely not 100% accurate. But it does show you how the "methodCall" XML structure should be.

<?xml version="1.0"?>
<xsd:schema xmlns:xsd="">
<!-- xmlRpcMethodCall.xsd
   Copyright (c) All Rights Reserved.
 <xsd:element name="methodCall" type="methodCallType"/>
 <xsd:complexType name="methodCallType">
   <xsd:element name="methodName" type="xsd:string"
      minOccurs="1" maxOccurs="1"/>
   <xsd:element name="params" type="paramsType"
 <xsd:complexType name="paramsType">
   <xsd:element name="param" type="paramType"
 <xsd:complexType name="paramType">
   <xsd:element name="value" type="valueType"
      minOccurs="1" maxOccurs="1"/>
 <xsd:complexType name="valueType">
   <xsd:element name="int" type="xsd:int" />
   <xsd:element name="boolean" type="xsd:boolean" />
   <xsd:element name="string" type="xsd:string" />
   <xsd:element name="double" type="xsd:double" />
   <xsd:element name="dateTime.iso8601" type="xsd:string" />
   <xsd:element name="base64" type="xsd:xsd:base64Binary" />
   <xsd:element name="struct" type="structType" />
   <xsd:element name="array" type="arrayType" />
 <xsd:complexType name="structType">
   <xsd:element name="member" type="memberType"
 <xsd:complexType name="memberType">
   <xsd:element name="name" type="xsd:string"
      minOccurs="1" maxOccurs="1"/>
   <xsd:element name="value" type="valueType"
      minOccurs="1" maxOccurs="1"/>
 <xsd:complexType name="arrayType">
   <xsd:element name="data" type="dataType"
      minOccurs="1" maxOccurs="1"/>
 <xsd:complexType name="dataType">
   <xsd:element name="value" type="valueType"

From this XML schema, we can see that:

The following is an example of "methodCall":


Table of Contents

 About This Book

 Perl on Linux Systems

 ActivePerl on Windows Systems

 Data Types: Values and Variables

 Expressions, Operations and Simple Statements

 User Defined Subroutines

 Perl Built-in Debugger

 Name Spaces and Perl Module Files

 Symbolic (or Soft) References

 Hard References - Addresses of Memory Objects

 Objects (or References) and Classes (or Packages)

 Typeglob and Importing Identifiers from Other Packages

 String Built-in Functions and Performance

 File Handles and Data Input/Output

 Open Files in Binary Mode

 Open Directories and Read File Names

 File System Functions and Operations

 Image and Picture Processing

 Using DBM Database Files

 Using MySQL Database Server

 Socket Communication Over the Internet

 XML::Simple Module - XML Parser and Generator

 XML Communication Model

 SOAP::Lite - SOAP Server-Client Communication Module

 Perl Programs as IIS Server CGI Scripts

 CGI (Common Gateway Interface)

XML-RPC - Remote Procedure Call with XML and HTTP

 What Is XML-RPC?

Defining a Remote Method Call in XML

 Sending a Remote Method Call as a HTTP Request

 Defining Returning Values of a Remote Method Call

 Receiving Returning Values as a HTTP Response

 RPC::XML - Perl Implementation of XML-RPC

 Integrating Perl with Apache Web Server Module for Building Web Pages

 LWP::UserAgent and Web Site Testing

 Converting Perl Script to Executable Binary

 Managing Perl Engine and Modules on macOS


 Full Version in PDF/EPUB