From bcad40a05ab2dc2a341a3227e30b96668bce4500 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Thu, 9 Jun 2005 16:34:40 +0000 Subject: New Import --- modules/xmlrpc/doc/xmlrpcmsg.html | 507 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 507 insertions(+) create mode 100644 modules/xmlrpc/doc/xmlrpcmsg.html (limited to 'modules/xmlrpc/doc/xmlrpcmsg.html') diff --git a/modules/xmlrpc/doc/xmlrpcmsg.html b/modules/xmlrpc/doc/xmlrpcmsg.html new file mode 100644 index 00000000..958ff3a2 --- /dev/null +++ b/modules/xmlrpc/doc/xmlrpcmsg.html @@ -0,0 +1,507 @@ +xmlrpcmsg
XML-RPC for PHP: version 1.1
PrevChapter 5. Class documentationNext

xmlrpcmsg

This class provides a representation for a request to an + XML-RPC server. A client sends an + xmlrpcmsg to a server, and receives back + an xmlrpcresp (see xmlrpc_client->send).

Creation

The constructor takes the following form:

$msg=new xmlrpcmsg($methodName, $parameterArray);

Where $methodName is a string + indicating the name of the method you wish to invoke, and + $parameterArray is a simple + Array of + xmlrpcval objects. Here's an example + message to the US state name server: +

$msg=new xmlrpcmsg("examples.getStateName",
+		  array(new xmlrpcval(23, "int")));
+		

This example requests the name of state number 23. For more + information on xmlrpcval objects, see + xmlrpcval. +

Methods

serialize

$outString=$msg->serialize();

Returns the an XML string representing the XML-RPC + message.

addParam

$msg->addParam($xmlrpcVal);

Adds the xmlrpcval + $xmlrpcVal to the parameter list for + this method call.

getParam

$xmlrpcVal=$msg->getParam($n);

Gets the $nth parameter in the + message. Use this method in server implementations. Returns + the undef value if no such parameter + exists.

getNumParams

$n=$msg->getNumParams();

Returns the number of parameters attached to this message. +

method

$methName=$msg->method();

$msg->method($methName);

Gets or sets the method contained in the XML-RPC message.

parseResponse

$response=$msg->parseResponse($xmlString);

Given an incoming XML-RPC server response contained in + the string + $xmlString, this method constructs + an xmlrpcresp response object and + returns it, setting error codes as appropriate (see xmlrpc_client->send). +

This method processes any HTTP/MIME headers it finds. +

parseResponseFile

$response=$msg->parseResponseFile($fileHandle);

Given an incoming XML-RPC server response on the file handle + $fileHandle, this method reads the + data and passes it to parseResponse +

This method is useful to construct responses from + pre-prepared files (see files demo1.txt, demo2.txt, + demo3.txt in this distribution). It processes + any HTTP headers it finds. +


PrevHomeNext
Class documentationUpxmlrpcresp
\ No newline at end of file -- cgit