In this case you still need to create client instance which extends XMLRPCClientHelper, but this time you don't need to write all the wrapper code. Just simply add __call overload methods.
It's easy but you need to remember the service API.
Here is the code:
<?php
class TestXMLRPCClientSimplified extends XMLRPCClientHelper {
public function __call($name, $arguments) {
return $this->sendRequest("$name", $arguments);
}
}
?>
0 comments:
Post a Comment