Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fedex Ship Manager Api Xml Transaction Using Php


maheshmurali

Recommended Posts

Hi all,

 

I want to send XML transaction to Fedex test server to get Meter Number.

I am using FSM API (not FSM Drect)

I have a valid account Number. I would like to know how to send XML using PHP.

Here is the example I got from Fedex site.

 

<?xml version="1.0" encoding="UTF-8" ?>

<FDXSubscriptionRequest xmlns:api="http://www.fedex.com/fsmapi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:noNamespaceSchemaLocation="FDXSubscriptionRequest.xsd">

<RequestHeader>

<CustomerTransactionIdentifier>String</CustomerTransactionIdentifier>

<AccountNumber>123456789</AccountNumber>

</RequestHeader>

<Contact>

<PersonName>Jim Smith</PersonName>

<CompanyName>Creative Widgets</CompanyName>

<Department>Shipping</Department>

<PhoneNumber>5405559900</PhoneNumber>

<PagerNumber>9999999999</PagerNumber>

<FaxNumber>5405559901</FaxNumber>

<E-MailAddress>[email protected]</E-MailAddress>

</Contact>

<Address>

<Line1>123 Main Street</Line1>

<Line2>1st Floor</Line2>

<City>Anycity</City>

<StateOrProvinceCode>VA</StateOrProvinceCode>

<PostalCode>24060</PostalCode>

<CountryCode>US</CountryCode>

</Address>

</FDXSubscriptionRequest>

 

How can I implement this using PHP. Does I need Trans.in file to send XML to fedex Server?

Link to comment
Share on other sites

http://www.php.net/curl

 

You can also look at my Paypal Pro module to see a practical example of sending XML with cURL.

 

http://www.oscommerce.com/community/contributions,3647

Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...