CAPLegislation
Click here for a complete list of operations.
GetLegislationData
Returns Legislation Data for a given Database, CAP ID, specification date, term, and milege. Database should be entered as CAR. The SelectedOptions field is comma delimited, Term should be entered in months (12-60) and be rounded to nearest 6, and Mileage should be entered in full rounded to 10000. Enter a comma delimited list of legislation fields to return out of the following options: ALL, P11D, C02, BIKTAXRATE, BIK20, BIK40, VED1ST (1st year VED), VED2ND (Subsequent VED), NICLASS1A_YR1RATE, NICLASS1A_YR1COST, NICLASS1A_YR2RATE, NICLASS1A_YR2COST, NICLASS1A_YR3RATE, NICLASS1A_YR3COST, NICLASS1A_YR4RATE, NICLASS1A_YR4COST, NICLASS1A_YR5RATE, NICLASS1A_YR5COST, WLC, SMR, DEPRECIATION, RV, FUELCOST, PPM.
Test
To test the operation using the HTTP POST protocol, click the 'Invoke' button.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /legislation/caplegislation.asmx HTTP/1.1 Host: soap.cap.co.uk Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "https://soap.cap.co.uk/legislation/GetLegislationData" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetLegislationData xmlns="https://soap.cap.co.uk/legislation"> <Subscriber_ID>int</Subscriber_ID> <Password>string</Password> <Database>string</Database> <CAPID>string</CAPID> <SpecDate>dateTime</SpecDate> <SelectedOptions>string</SelectedOptions> <Term>int</Term> <Mileage>int</Mileage> <DataList>string</DataList> </GetLegislationData> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetLegislationDataResponse xmlns="https://soap.cap.co.uk/legislation"> <GetLegislationDataResult> <Success>boolean</Success> <FailMessage>string</FailMessage> <Returned_DataSet> <xsd:schema>schema</xsd:schema>xml</Returned_DataSet> </GetLegislationDataResult> </GetLegislationDataResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /legislation/caplegislation.asmx HTTP/1.1 Host: soap.cap.co.uk Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <GetLegislationData xmlns="https://soap.cap.co.uk/legislation"> <Subscriber_ID>int</Subscriber_ID> <Password>string</Password> <Database>string</Database> <CAPID>string</CAPID> <SpecDate>dateTime</SpecDate> <SelectedOptions>string</SelectedOptions> <Term>int</Term> <Mileage>int</Mileage> <DataList>string</DataList> </GetLegislationData> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <GetLegislationDataResponse xmlns="https://soap.cap.co.uk/legislation"> <GetLegislationDataResult> <Success>boolean</Success> <FailMessage>string</FailMessage> <Returned_DataSet> <xsd:schema>schema</xsd:schema>xml</Returned_DataSet> </GetLegislationDataResult> </GetLegislationDataResponse> </soap12:Body> </soap12:Envelope>
HTTP GET
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.
GET /legislation/caplegislation.asmx/GetLegislationData?Subscriber_ID=string&Password=string&Database=string&CAPID=string&SpecDate=string&SelectedOptions=string&Term=string&Mileage=string&DataList=string HTTP/1.1 Host: soap.cap.co.uk
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <CAPDataSetResult xmlns="https://soap.cap.co.uk/legislation"> <Success>boolean</Success> <FailMessage>string</FailMessage> <Returned_DataSet> <schema xmlns="http://www.w3.org/2001/XMLSchema">schema</schema>xml</Returned_DataSet> </CAPDataSetResult>
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /legislation/caplegislation.asmx/GetLegislationData HTTP/1.1 Host: soap.cap.co.uk Content-Type: application/x-www-form-urlencoded Content-Length: length Subscriber_ID=string&Password=string&Database=string&CAPID=string&SpecDate=string&SelectedOptions=string&Term=string&Mileage=string&DataList=string
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <CAPDataSetResult xmlns="https://soap.cap.co.uk/legislation"> <Success>boolean</Success> <FailMessage>string</FailMessage> <Returned_DataSet> <schema xmlns="http://www.w3.org/2001/XMLSchema">schema</schema>xml</Returned_DataSet> </CAPDataSetResult>