Class FedexServices

java.lang.Object
org.apache.ofbiz.shipment.thirdparty.fedex.FedexServices

public class FedexServices extends Object
Fedex Shipment Services Implementation of Fedex shipment interface using Ship Manager Direct API TODO: FDXShipDeleteRequest/Reply (on error and via service call) TODO: FDXCloseRequest/Reply TODO: FDXRateRequest/Reply TODO: FDXTrackRequest/Reply TODO: International shipments TODO: Multi-piece shipments TODO: Freight shipments
  • Field Details

  • Constructor Details

    • FedexServices

      public FedexServices()
  • Method Details

    • sendFedexRequest

      public static String sendFedexRequest(String xmlString, Delegator delegator, String shipmentGatewayConfigId, String resource, Locale locale) throws org.apache.ofbiz.shipment.thirdparty.fedex.FedexConnectException
      Opens a URL to Fedex and makes a request.
      Parameters:
      xmlString - XML message to send
      delegator - the delegator
      shipmentGatewayConfigId - the shipmentGatewayConfigId
      resource - RESOURCE file name
      Returns:
      XML string response from FedEx
      Throws:
      org.apache.ofbiz.shipment.thirdparty.fedex.FedexConnectException
    • fedexSubscriptionRequest

      public static Map<String,Object> fedexSubscriptionRequest(DispatchContext dctx, Map<String,? extends Object> context)
      Fedex subscription request map. Register a Fedex account for shipping by obtaining the meter number
      Parameters:
      dctx - the dctx
      context - the context
      Returns:
      the map
    • fedexShipRequest

      public static Map<String,Object> fedexShipRequest(DispatchContext dctx, Map<String,? extends Object> context)
      Send a FDXShipRequest via the Ship Manager Direct API
    • handleFedexShipReply

      public static Map<String,Object> handleFedexShipReply(String fDXShipReplyString, GenericValue shipmentRouteSegment, List<GenericValue> shipmentPackageRouteSegs, Locale locale) throws GenericEntityException
      Extract the tracking number and shipping label from the FDXShipReply XML string
      Parameters:
      fDXShipReplyString -
      shipmentRouteSegment -
      shipmentPackageRouteSegs -
      Throws:
      GenericEntityException
    • handleErrors

      public static void handleErrors(Element rootElement, List<Object> errorList, Locale locale)