Defining Returning Values of a Remote Method Call

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

The third item of the XML-RPC specification is about how to define returning values of a remote method call in XML format.

XML-RPC defines returning values of a method call as an XML element called "methodResponse". The structure of "methodResponse is very similar to "methodCall". But only one "param" is allowed inside "params" as shown in the following XSD file:

<?xml version="1.0"?>
<xsd:schema xmlns:xsd="">
<!-- xmlRpcMethodResponse.xsd
   Copyright (c) All Rights Reserved.
 <xsd:element name="methodResponse" type="methodResponseType"/>
 <xsd:complexType name="methodResponseType">
   <xsd:element name="params" type="paramsType"
 <xsd:complexType name="paramsType">
   <xsd:element name="param" type="paramType"
      minOccurs="1" maxOccurs="1"/>

Here is an example of "methodResponse":


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

 Archived Tutorials


 Full Version in PDF/EPUB