topical media & game development
server-webapi-code-08-fedexService.php / php
<?php
serviceOptions['PRIORITYOVERNIGHT'] = "Priority Overnight";
serviceOptions['FIRSTOVERNIGHT'] = "First Overnight";
serviceOptions['FEDEXEXPRESSSAVER'] = "Express Saver";
serviceOptions['INTERNATIONALECONOMY'] = "International Economy";
serviceOptions['FEDEX1DAYFREIGHT'] = "One Day Freight";
serviceOptions['FEDEX3DAYFREIGHT'] = "Three Day Freight";
serviceOptions['GROUNDHOMEDELIVERY'] = "Ground Home Delivery";
serviceOptions['INTERNATIONALECONOMY FREIGHT'] = "International Economy Freight";
request = <<< XMLREQUEST
<?xml version="1.0" encoding="UTF-8" ?>
<FDXRateAvailableServicesRequest xmlns:api="http://www.fedex.com/fsmapi"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="FDXRateRequest.xsd">
<RequestHeader>
<CustomerTransactionIdentifier>1</CustomerTransactionIdentifier>
<AccountNumber>meterNumber</MeterNumber>
<CarrierCode>request));
echo "</pre>\n";
echo "<h3>Response</h3>\n";
request);
foreach (service)
{
echo "It would cost ${serviceOptions["{service->DeliveryDate)) . "<br>";
}
echo "<pre>";
print_r(
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.