GetXMLRPCData
The GetXMLRPCData method issues an XML-RPC
call, through the XML-RPC Helper, on the specified method to the specified
host and port.
Method Synopsis
GetXMLRPCData($host, $port, $method, $methodArgArray)Parameters
- $host
- Specifies the host address of the target device supporting XML-RPC calls.
- $port
- Specifies the port of the target device to which XML-RPC calls should be made.
- $method
- Specifies the XML-RPC method to call on the target device.
- $methodArgArray
- Holds the relevant arguments to the selected XML-RPC method call specified in the $method parameter.
Description
The GetXMLRPCData method
uses the XML-RPC Helper to perform the XML-RPC call specified in the $method parameter
on the target device specified in the $host and $port parameters.
The call can be a custom call or one of the calls defined in the published Network Manager Collector
XML Schema.
NotesĀ®
The GetXMLRPCData method
issues the request to the Helper Server, which performs the actual
work. Thus, the Helper Server (and ncp_ctrl) must be running so that
this method can make the appropriate XML-RPC request.
Returns
Upon completion, the GetXMLRPCData method
returns the XML data with which the target device responded. It is
the responsibility of the caller to interpret this XML data.