![]() It is expected to return a single value (assuming it returns at all). The closure will receive a single argument, the text of the error message from the failed communication attempt. Xml rpc client code#If passed, the value must be a code reference that will be invoked when a request results in a transport-level error. Xml rpc client manual#See the manual page for LWP::UserAgent for supported values. The contents are passed to the constructor of the LWP::UserAgent class when creating that component of the client object. This is similar to the parser argument above, and also expects an array reference to follow it. See the RPC::XML::ParserFactory manual page for a list of recognized parameters to the constructor. The contents of that array are passed to the new method of the RPC::XML::ParserFactory-generated object that the client object caches for its use. If this parameter is passed, the value following it is expected to be an array reference. The following are recognized by new and treated specially: parser Most are attached to the object itself without change. The URI argument may be a string or an object from the URI class from CPAN.Īny additional arguments are treated as key-value pairs. The return value of this method is a reference to the new object. When requests are made, these objects are ready to go, with the headers set appropriately. The constructor creates a HTTP::Request object and a LWP::UserAgent object, which are stored on the client object. The following methods are available: new (URI )Ĭreates a new client object that will route its requests to the URL provided. Xml rpc client full#This client supports the full XML-RPC specification. This is an XML-RPC client built upon the RPC::XML data classes, and using LWP::UserAgent and HTTP::Request for the communication layer. Print ref $resp ? join(', ', : "Error: $resp" DESCRIPTION $resp = $cli->send_request('system.listMethods')
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |