Fedex Integration Error

So from an ecommerce site I am doing a webservice calls (Soap Service) to the FedEx api to determine a quote for shipping an item.

I have run into the following error and can’t get arround it: “Origin country code invalid or missing”.

Now it seems pretty simple, but the thing is I have a shipper code filled in. The value is ZA, which according to FedEx Api Documentation is a valid code.

See below the xml sent and the response recieved. What am I missing?

Sent:


<?xml version="1.0" encoding="UTF-8" ?> 
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://fedex.com/ws/rate/v9">
- <SOAP-ENV:Body>
- <ns1:RateRequest>
- <ns1:WebAuthenticationDetail>
- <ns1:UserCredential>
  <ns1:Key>[COLOR="Red"]removed[/COLOR]</ns1:Key> 
  <ns1:Password>[COLOR="Red"]removed[/COLOR]</ns1:Password> 
  </ns1:UserCredential>
  </ns1:WebAuthenticationDetail>
- <ns1:ClientDetail>
  <ns1:AccountNumber>510087348</ns1:AccountNumber> 
  <ns1:MeterNumber>118530567</ns1:MeterNumber> 
  </ns1:ClientDetail>
- <ns1:Version>
  <ns1:ServiceId>crs</ns1:ServiceId> 
  <ns1:Major>9</ns1:Major> 
  <ns1:Intermediate>0</ns1:Intermediate> 
  <ns1:Minor>0</ns1:Minor> 
  </ns1:Version>
  <ns1:ReturnTransitAndCommit>true</ns1:ReturnTransitAndCommit> 
- <ns1:RequestedShipment>
  <ns1:ShipTimestamp>2010-12-17T14:30:06+02:00</ns1:ShipTimestamp> 
  <ns1:DropoffType>REQUEST_COURIER</ns1:DropoffType> 
  <ns1:ServiceType>GROUND_HOME_DELIVERY</ns1:ServiceType> 
  <ns1:PackagingType>YOUR_PACKAGING</ns1:PackagingType> 
- <ns1:Shipper>
- <ns1:Address>
  <ns1:StreetLines>Unit 1 Henleyhouse</ns1:StreetLines> 
  <ns1:StreetLines>Wellington Road</ns1:StreetLines> 
  <ns1:City>Drubanville</ns1:City> 
  <ns1:PostalCode>7550</ns1:PostalCode> 
  <ns1:CountryCode>ZA</ns1:CountryCode> 
  </ns1:Address>
  </ns1:Shipper>
- <ns1:Recipient>
- <ns1:Address>
  <ns1:StreetLines>Drommedaris Street 3A</ns1:StreetLines> 
  <ns1:StreetLines>Hooikraal</ns1:StreetLines> 
  <ns1:City>Moorreesburg</ns1:City> 
  <ns1:PostalCode>7310</ns1:PostalCode> 
  <ns1:CountryCode>ZA</ns1:CountryCode> 
  <ns1:Residential>true</ns1:Residential> 
  </ns1:Address>
  </ns1:Recipient>
- <ns1:ShippingChargesPayment>
  <ns1:PaymentType>SENDER</ns1:PaymentType> 
- <ns1:Payor>
  <ns1:AccountNumber>510087348</ns1:AccountNumber> 
  <ns1:CountryCode>ZA</ns1:CountryCode> 
  </ns1:Payor>
  </ns1:ShippingChargesPayment>
  <ns1:RateRequestTypes>LIST</ns1:RateRequestTypes> 
  <ns1:PackageCount>1</ns1:PackageCount> 
  <ns1:PackageDetail>INDIVIDUAL_PACKAGES</ns1:PackageDetail> 
- <ns1:RequestedPackageLineItems>
- <ns1:Weight>
  <ns1:Units>KG</ns1:Units> 
  <ns1:Value>2</ns1:Value> 
  </ns1:Weight>
- <ns1:Dimensions>
  <ns1:Length>10</ns1:Length> 
  <ns1:Width>30</ns1:Width> 
  <ns1:Height>20</ns1:Height> 
  <ns1:Units>CM</ns1:Units> 
  </ns1:Dimensions>
  </ns1:RequestedPackageLineItems>
  </ns1:RequestedShipment>
  </ns1:RateRequest>
  </SOAP-ENV:Body>
  </SOAP-ENV:Envelope>

Response:


  <?xml version="1.0" encoding="UTF-8" ?> 
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <env:Header xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" /> 
- <env:Body xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <v9:RateReply xmlns:v9="http://fedex.com/ws/rate/v9">
  <v9:HighestSeverity>ERROR</v9:HighestSeverity> 
- <v9:Notifications>
  <v9:Severity>ERROR</v9:Severity> 
  <v9:Source>crs</v9:Source> 
  <v9:Code>502</v9:Code> 
  <v9:Message>Origin country code invalid or missing.</v9:Message> 
  <v9:LocalizedMessage>Origin country code invalid or missing.</v9:LocalizedMessage> 
  </v9:Notifications>
- <v9:Notifications>
  <v9:Severity>ERROR</v9:Severity> 
  <v9:Source>crs</v9:Source> 
  <v9:Code>991</v9:Code> 
  <v9:Message>Rates and transit times are not available for the account number entered. For immediate assistance, please contact your local FedEx Customer Service.</v9:Message> 
  <v9:LocalizedMessage>Rates and transit times are not available for the account number entered. For immediate assistance, please contact your local FedEx Customer Service.</v9:LocalizedMessage> 
  </v9:Notifications>
- <ns1:Version xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://fedex.com/ws/rate/v9">
  <ns1:ServiceId>crs</ns1:ServiceId> 
  <ns1:Major>9</ns1:Major> 
  <ns1:Intermediate>0</ns1:Intermediate> 
  <ns1:Minor>0</ns1:Minor> 
  </ns1:Version>
  </v9:RateReply>
  </env:Body>
  </soapenv:Envelope>