FuelPricingServices
Click here for a complete list of operations.
CityPricingSummary
Provides a summary of the current day's fuel prices in an individual city. Returns the following data: lowest ULP price for the current day, highest ULP price for the current day, average ULP price for the current day and the cheapest day to buy fuel for the last week. Can be invoked for Brisbane, Sydney, Melbourne, Adelaide & Perth. To download associated images and files click here.
Test
To test the operation using the HTTP POST protocol, click the 'Invoke' button.SOAP
The following is a sample SOAP request and response. The placeholders shown need to be replaced with actual values.
POST /Services/FuelPricingServices.asmx HTTP/1.1
Host: motormouth.net.au
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://MotorMouth.net.au/CityPricingSummary"
<?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>
<CityPricingSummary xmlns="http://MotorMouth.net.au/">
<CityName>string</CityName>
<FuelType>int</FuelType>
</CityPricingSummary>
</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>
<CityPricingSummaryResponse xmlns="http://MotorMouth.net.au/">
<CityPricingSummaryResult>
<Data>
<xsd:schema>schema</xsd:schema>xml</Data>
<ResultCode>int</ResultCode>
<ResultMsg>string</ResultMsg>
</CityPricingSummaryResult>
</CityPricingSummaryResponse>
</soap:Body>
</soap:Envelope>
HTTP GET
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.
GET /Services/FuelPricingServices.asmx/CityPricingSummary?CityName=string&FuelType=string HTTP/1.1 Host: motormouth.net.au
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<WebServiceData xmlns="http://MotorMouth.net.au/">
<Data>
<schema xmlns="http://www.w3.org/2001/XMLSchema">schema</schema>xml</Data>
<ResultCode>int</ResultCode>
<ResultMsg>string</ResultMsg>
</WebServiceData>
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /Services/FuelPricingServices.asmx/CityPricingSummary HTTP/1.1 Host: motormouth.net.au Content-Type: application/x-www-form-urlencoded Content-Length: length CityName=string&FuelType=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<WebServiceData xmlns="http://MotorMouth.net.au/">
<Data>
<schema xmlns="http://www.w3.org/2001/XMLSchema">schema</schema>xml</Data>
<ResultCode>int</ResultCode>
<ResultMsg>string</ResultMsg>
</WebServiceData>