|
Microsoft .Net 2.0 object to easily handle all your Shipping Rate, Tracking, Register, Shipping, Void and Available Services requests using Fedex XML API. 1 simple call to this component provides you with a wealth of returned variables to effortlessly use and integrate into your web applications.
Create live Fedex® shipping labels from within your .Net 2.0 framework application and print right from your browser (we have tested printing with IE 6.0 and above, Mozilla 1.5 on Windows and Mozilla 1.2 on Macintosh – Mac IE does not print approved label graphics)
Full List of functions provided by this tag
- RegisterRequest (Register your account with Fedex for access to their XML API's)
- GetRates (Live rate quotes directly from Fedex , as specified by Fedex the values returned are considered “courtesy rate quotes” and may
differ from the actual amount invoiced depending upon the specific circumstances regarding the shipment.). This powerful request returns a wealth of values, including base rate, your discounted rate, all applicable surcharges, the zone, whether DIM weight was applied to this rate quote, the currency code, rate scale and much more!
- GetAllRates (Returns which FedEx services and applicable rates are available between a given origin and destination (All Available Services). values returned include Service, Packaging, Delivery Date, Delivery Day, Time In Transit, Rate Zone, Freight Charges and more).
- GetFDXTrackingInfo (Returns detailed tracking information for a supplied tracking number. Result a list of simple variables such as Service, Ship Date, EST Delivery Date and others, if a scan history for this shipment is available then an additional array containing full information about every scan history record is also available for display)
- GetFDXShipInfo (Creates a fully certifiable Fedex Shipping Label directly from your own web based application, also returns the newly created tracking number, rate for shipment and many other values - highly configurable including multiple Special Service options, COD, Saturday Delivery, and more)
- GetFDXShipDeleteInfo (Deletes a previously created shipping label from the Fedex servers, label must have been created using the GetFDXShipInfo and the shipment must not have already been shipped)
*Important note when testing the demo, Fedex rates your package based on your account number's address and meter number as being the origin of the shipment.
You must register with Fedex for access to their XML API before using our object (it will not function without registration). We provide a simple registration form that can be used to perform a real-time registration.
*This has only been tested with accessing the API setup for US origin shipping, support for creation of International labels from a US origin is not fully supported in this build.
Usage Example:
string strAccountNO = "", strMeterNO = "";
strAccountNO = ConfigurationSettings.AppSettings["AccountNO"].ToString();
strMeterNO = ConfigurationSettings.AppSettings["MeterNO"].ToString();
MirFedex.Fedex fobj = new MirFedex.Fedex("https://gatewaybeta.fedex.com:443/GatewayDC", strAccountNO, strMeterNO);
MirFedex.Address orig = new Address("","GA","30324","US");
MirFedex.Address dest = new Address("","CA","90046","US");
fobj.Originaddress = orig;
fobj.Destinationaddress = dest;
fobj.Requestlistrates = "1";
MirFedex.Package pkg = new Package((decimal)10,(decimal)18,(decimal)11,(decimal)155,MirFedex.WeightUnits.Pounds,MirFedex.PackagingTypes.YourPackaging);
fobj.Shipmentpackage = pkg;
fobj.ServiceType = "Fedex Next Day Freight";
fobj.Declaredvalue = "90";
MirFedex.SpecialServices sper = new SpecialServices((long)MirFedex.AvailableSpecialServices.SatDelivery);
fobj.Specialservicesforraterequest = sper;
fobj.CarrierType = "FedEx Express";
string str = fobj.GetRates();
fobj.ParseRateResonse(str); |
|
|
|