Companies House XML Gateway |
||||||||||||||
|
|
Companies House XML Gateway Interface Specification
Pre-requisites It is essential that anyone wishing to use the Companies House XML Gateway has sound experience in developing software that uses HTTP and XML.Companies House cannot provide any advice and support on developing your own software. Transport The Companies House XML Gateway exchanges XML over HTTP. Requests are submitted via the HTTP POST method, with a Content-Type of text/xml. Sessions are usually synchronous, with the requested XML document being returned in the response. There is one exception - see 'Document Ordering' for further details. The example XML shown in the schemas section illustrate typical requests and responses to and from the XML Gateway. Requests must be submitted with a Content-Type of text/xml. A typical transaction looks like this. Message Envelope and GovtalkService specific requests and responses are encapsulated within a common envelope that carries the essential routing and authentication details. This envelope is subset of the UK GovTalk Message Envelope (http://www.govtalk.gov.uk) as the Companies House XML gateway is designed to allow data exchange between Government Departments that already use the GovTalk XML Messaging standard. The envelope used by the Companies House XML Gateway may be found here with documentation here. Gateway URL and Request RoutingRequests are submitted to a single Gateway entry point: http://xmlgw.companieshouse.gov.uk/v1-0/xmlgw/Gateway The content of the request document submitted to the Gateway describes the information being requested. The Gateway uses this information to route the request to the appropriate service once it has carried out some preliminary checks, such as authentication details. Versioning The Gateway, service handlers and schemas are explicitly versioned. The Gateway URL contains this version number so that clients may continue to use an older version of a Gateway service when it becomes superseded. This allows customers to upgrade to a new service version in a controlled manner. Superseded versions will usually remain available for a period of 3 months. New implementations should comply with the latest schema/service versions. Authentication Please email xml@companieshouse.gov.uk, for a specification of the authentication algorithm. Details of the XML elements used to transport authentication details are described in the message envelope documentation. Error HandlingAll errors are returned in the <GovTalkErrors> envelope element. business and fatal errors are not recoverable and indicate that processing was unsuccessful. warning 'errors' return useful information which should be noted by the originator even though processing was successful. A complete list of error codes and descriptions may be found here Document OrderingDocuments identified as being available as images by a Filing History may be ordered through the two-phase Document Ordering services. In the first phase information about the required document is requested from the DocumentInfo service. This information will return the availablility of the document and a unique ordering key. If the document to be requested is likely to take some time to be satisfied, a warning is returned. The document is requested in the second phase. This is done by passing the unique ordering key returned in the document information to the Document request service. The reply from this request will return an explicit URL to the requested document and a polling interval. The URL is returned in the GovTalk header <ResponseEndPoint> element. The PollInterval specifies the minimum period between accesses to the returned URL. It is up to the requestor to guarantee that requests are not made more frequently than the PollInterval dictates. Schemas W3C schemas for the information services provided by the Companies House XML Gateway are available below. Also provided below is comprehensive documentation detailing schema content (e.g. elements, complex types etc.)
|
| ||||||||||||
| Privacy Statement | Acceptable use statement | Accessibility | Use of cookies | Information Rights | © Crown Copyright 2003 | |
|
. |