FSIService
Click here for a complete list of operations.
GetFuelCostPerGallonOnly
Get a Cost Per Gallon number for a route.
Test
The test form is only available for requests from the local machine.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 /FSIService.asmx HTTP/1.1 Host: www.fuelsurchargeindex.org Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://www.fuelsurchargeindex.com/GetFuelCostPerGallonOnly" <?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> <GetFuelCostPerGallonOnly xmlns="http://www.fuelsurchargeindex.com/"> <FSIRequest> <Username xmlns="http://ProMiles.FSIInternal">string</Username> <Password xmlns="http://ProMiles.FSIInternal">string</Password> <CompanyCode xmlns="http://ProMiles.FSIInternal">string</CompanyCode> <MPG xmlns="http://ProMiles.FSIInternal">decimal</MPG> <RequestedFuelDate xmlns="http://ProMiles.FSIInternal">dateTime</RequestedFuelDate> <Adder xmlns="http://ProMiles.FSIInternal">decimal</Adder> <FuelSurchargeTrigger xmlns="http://ProMiles.FSIInternal">decimal</FuelSurchargeTrigger> <FuelType xmlns="http://ProMiles.FSIInternal">string</FuelType> <RouteMethod xmlns="http://ProMiles.FSIInternal">string</RouteMethod> <TripLegCollection xmlns="http://ProMiles.FSIInternal"> <TripLeg> <LocationText>string</LocationText> </TripLeg> <TripLeg> <LocationText>string</LocationText> </TripLeg> </TripLegCollection> <AddMileTaxToTotal xmlns="http://ProMiles.FSIInternal">boolean</AddMileTaxToTotal> <AddIFTASurchargeToTotal xmlns="http://ProMiles.FSIInternal">boolean</AddIFTASurchargeToTotal> <AddStateTaxToTotal xmlns="http://ProMiles.FSIInternal">boolean</AddStateTaxToTotal> <UseMajorChainsOnly xmlns="http://ProMiles.FSIInternal">boolean</UseMajorChainsOnly> <UseNetwork xmlns="http://ProMiles.FSIInternal">boolean</UseNetwork> <ExcludeMexico xmlns="http://ProMiles.FSIInternal">boolean</ExcludeMexico> <Network xmlns="http://ProMiles.FSIInternal"> <NetworkStop> <OpisID>int</OpisID> <FuelType>string</FuelType> <Adder>decimal</Adder> </NetworkStop> <NetworkStop> <OpisID>int</OpisID> <FuelType>string</FuelType> <Adder>decimal</Adder> </NetworkStop> </Network> </FSIRequest> </GetFuelCostPerGallonOnly> </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> <GetFuelCostPerGallonOnlyResponse xmlns="http://www.fuelsurchargeindex.com/"> <GetFuelCostPerGallonOnlyResult>decimal</GetFuelCostPerGallonOnlyResult> </GetFuelCostPerGallonOnlyResponse> </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 /FSIService.asmx HTTP/1.1 Host: www.fuelsurchargeindex.org 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> <GetFuelCostPerGallonOnly xmlns="http://www.fuelsurchargeindex.com/"> <FSIRequest> <Username xmlns="http://ProMiles.FSIInternal">string</Username> <Password xmlns="http://ProMiles.FSIInternal">string</Password> <CompanyCode xmlns="http://ProMiles.FSIInternal">string</CompanyCode> <MPG xmlns="http://ProMiles.FSIInternal">decimal</MPG> <RequestedFuelDate xmlns="http://ProMiles.FSIInternal">dateTime</RequestedFuelDate> <Adder xmlns="http://ProMiles.FSIInternal">decimal</Adder> <FuelSurchargeTrigger xmlns="http://ProMiles.FSIInternal">decimal</FuelSurchargeTrigger> <FuelType xmlns="http://ProMiles.FSIInternal">string</FuelType> <RouteMethod xmlns="http://ProMiles.FSIInternal">string</RouteMethod> <TripLegCollection xmlns="http://ProMiles.FSIInternal"> <TripLeg> <LocationText>string</LocationText> </TripLeg> <TripLeg> <LocationText>string</LocationText> </TripLeg> </TripLegCollection> <AddMileTaxToTotal xmlns="http://ProMiles.FSIInternal">boolean</AddMileTaxToTotal> <AddIFTASurchargeToTotal xmlns="http://ProMiles.FSIInternal">boolean</AddIFTASurchargeToTotal> <AddStateTaxToTotal xmlns="http://ProMiles.FSIInternal">boolean</AddStateTaxToTotal> <UseMajorChainsOnly xmlns="http://ProMiles.FSIInternal">boolean</UseMajorChainsOnly> <UseNetwork xmlns="http://ProMiles.FSIInternal">boolean</UseNetwork> <ExcludeMexico xmlns="http://ProMiles.FSIInternal">boolean</ExcludeMexico> <Network xmlns="http://ProMiles.FSIInternal"> <NetworkStop> <OpisID>int</OpisID> <FuelType>string</FuelType> <Adder>decimal</Adder> </NetworkStop> <NetworkStop> <OpisID>int</OpisID> <FuelType>string</FuelType> <Adder>decimal</Adder> </NetworkStop> </Network> </FSIRequest> </GetFuelCostPerGallonOnly> </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> <GetFuelCostPerGallonOnlyResponse xmlns="http://www.fuelsurchargeindex.com/"> <GetFuelCostPerGallonOnlyResult>decimal</GetFuelCostPerGallonOnlyResult> </GetFuelCostPerGallonOnlyResponse> </soap12:Body> </soap12:Envelope>