Name: revXMLRPC_SetMethod

Type: command

Syntax: revXMLRPC_SetMethod <XML-RPC document>,<method name>

Summary: Sets the name of the method in an XML-RPC document structure.

Introduced: 2.5

OS: mac,windows,linux

Platforms: desktop,server,web

Security: disk,process

Example:
revXMLRPC_SetMethod theRequest,"sample.elizabethanInsult"

Parameters:
documentID: The number returned by the revXMLRPC_CreateRequest when you created the XML-RPC request.
method name: The the method name to be called upon execution of the XML-RPC document documentID.

The result: If the <revXMLRPC_SetMethod> <command> encounters an error, the <result> is set to an error message beginning with "xmlerr" or "xmlrpcerr".

Description:
Use the <revXMLRPC_SetMethod> <command> to set the method name to be called upon execution of an existing <XML-RPC document>.

Where the path of the <XML-RPC document> tells the server which resource will handle the request, the <method name> tells that resource which method is being called specifically within that resource.

>*Important:*  The <revXMLRPC_SetMethod> <command> is part of the <XML-RPC library>. To ensure that the <command> works in a <standalone application>, you must include this <Revolution custom library|custom library> when you create your <standalone application|standalone>. In the Inclusions section on the General screen of the <Standalone Application Settings> window, make sure "XML-RPC Library" is selected in the list of script libraries.

References: revXMLRPC_SetPath (command), revXMLRPC_GetMethod (command), result (function), XML-RPC library (library), Revolution custom library (library), Standalone Application Settings (glossary), standalone application (glossary), command (glossary), XML-RPC document (glossary)
