Extension:Webservice

This extension allows you to easily include information from an external webservice into a wiki page. For instance, you could pull data from a web page, an XML feed, etc.

It currently requires an internal version of tidy and PHP5. I'll likely add external Tidy and pre-PHP5 support at some point.

Usage
This is a function extension primarily, and takes three parameters (in order):
 * URL:The full url of the webservice that you wish to use
 * Wikitext: The wikitext to insert into the page--additionally, anything between % signs will be replaced with the result of executing that text as an XPath string on the document returned from the URL.
 * Options: Currently, there are three possible options:
 * IE  - Impersonate Internet Explorer (by changing the user-agent)
 * TIDY-XHTML - Run tidy on the document returned from the URL, converting it to XHTML
 * COOKIE:key=value - Insert a cookie specified by the key and value into the request headers
 * ENCODING:value - The encoding of the web service information (needed by Tidy: see The Tidy documentation for valid values).  Defaults to utf8.

Installation

 * 1) Create a directory called Webservice in your extensions directory
 * 2) Download webservice.php into your Webservice directory

Parameters
If you are behind a proxy (i.e. you have set  in  ), you can set an additional variable   which is an array of URL patterns to exclude from the proxy. For example: would exclude any URLs that end in key.com, keybank.com or mdd.com.

Revision History

 * 0.3.0 (03/20/2009): Minor fixes to error handling

Sites using this extension
Please add your site (and a link if it is public) to the list! Thanks!
 * Key National Finance WiKey (internal intranet)