Outage data may be downloaded in CSV or XML format. The CSV export option is available within the main search screen, and is discussed further in Appendix D.
For automatically retrieving search results, the POCP site offers a SOAP Web Service capable of handling the same queries as the regular web interface. The web service is accessible via http://pocp.redspider.co.nz/soap4.php. The SOAP interface provides a WSDL schema for ease of integration.
Developers intending to access the Web Service should contact Richard Clark (richard@redspider.co.nz) in order to ensure they are aware of the latest changes.
Developers intending to use this interface should have a solid understanding of how the website works in general, what the various terms such as outage block and plant relate to, and what their expected formats are. The intention of this section is to outline the interface itself, details on using the site are found elsewhere in this guide.
The interface currently supports the following methods:
This function returns an array of "outages". Outages are a complex type of the following structure:
Reference ID is the POCP internal ID for a given outage, and can be used to construct a URL to link directly to the POCP entry for that outage like this:
http://pocp.redspider.co.nz/index.php?op=get_outage|view_outage&outage_id=reference_id
So, reference ID 25713 would be:
http://pocp.redspider.co.nz/index.php?op=get_outage|view_outage&outage_id=25713
No arguments
Returns an array of Mapping, a Mapping is a complex type of the following structure:
No arguments
See owner_list, the name field will contain the name of the category however.
No arguments
See owner_list, the name field will contain the name of the assessment_status.
No arguments
See owner_list, the name field will contain the name of the planning_status.
Users requiring further technical assistance should contact Richard Clark at Red Spider (richard@redspider.co.nz) in the first instance.