https://github.com/pear/xml_rpc2
https://github.com/pear/xml_rpc2
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/pear/xml_rpc2
- Owner: pear
- Created: 2012-04-13T05:05:06.000Z (over 14 years ago)
- Default Branch: trunk
- Last Pushed: 2024-12-22T16:35:00.000Z (over 1 year ago)
- Last Synced: 2025-03-30T10:06:35.625Z (over 1 year ago)
- Language: PHP
- Homepage: http://pear.php.net/package/XML_RPC2
- Size: 366 KB
- Stars: 9
- Watchers: 13
- Forks: 22
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PEAR XML_RPC2
=============
XML_RPC2 is a pear package providing XML_RPC client and server services.
XML-RPC is a simple remote procedure call protocol built using HTTP as
transport and XML as encoding. As a client library, XML_RPC2 is capable of
creating a proxy class which exposes the methods exported by the server. As a
server library, XML_RPC2 is capable of exposing methods from a class or object
instance, seamlessly exporting local methods as remotely callable procedures.
Basic Usage
-----------
```php
'package.'
);
$client = XML_RPC2_Client::create(
'http://pear.php.net/xmlrpc.php',
$options
);
try {
$result = $client->info('XML_RPC2');
print_r($result);
} catch (XML_RPC2_FaultException $e) {
// The XMLRPC server returns a XMLRPC error
die('Exception #' . $e->getFaultCode() . ' : ' . $e->getFaultString());
} catch (Exception $e) {
// Other errors (HTTP or networking problems...)
die('Exception : ' . $e->getMessage());
}
?>
```