'
';
echo $result->Summary[0]->data().'
';
echo $result->DisplayUrl[0]->data();
echo '';
}
echo '';
Chapter 10
[ 301 ]
If we add some CSS to our document we can create a highly customizable search
facility, which a user need not even know is based on the Yahoo! API:
This example has demonstrated how easy it is to use web services. Although this
example is not particularly advanced, it shows how quickly we can create very
powerful tools for Joomla!.
Building a Web Service (XML-RPC Plugin)
XML-RPC is way in which systems can call procedures on remote systems via HTTP
using XML to encode data. Joomla! includes an XML-RPC server that we can extend
using plugins. For more information about plugins, please refer to Chapter 6.
The XML-RPC server will only function if the 'Enable Web Services'
option in the Global Configuration is enabled.
Before we begin, it is important to understand that Joomla! relies heavily on the
phpxmlrpc library, which is available from: http://phpxmlrpc.
Pages:
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415