Class FedexServices
java.lang.Object
org.apache.ofbiz.shipment.thirdparty.fedex.FedexServices
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfedexShipRequest
(DispatchContext dctx, Map<String, ? extends Object> context) Send a FDXShipRequest via the Ship Manager Direct APIfedexSubscriptionRequest
(DispatchContext dctx, Map<String, ? extends Object> context) Fedex subscription request map.static void
handleErrors
(Element rootElement, List<Object> errorList, Locale locale) handleFedexShipReply
(String fDXShipReplyString, GenericValue shipmentRouteSegment, List<GenericValue> shipmentPackageRouteSegs, Locale locale) Extract the tracking number and shipping label from the FDXShipReply XML stringstatic String
sendFedexRequest
(String xmlString, Delegator delegator, String shipmentGatewayConfigId, String resource, Locale locale) Opens a URL to Fedex and makes a request.
-
Field Details
-
SHIPMENT_PROPERTIES_FILE
- See Also:
-
-
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 senddelegator
- the delegatorshipmentGatewayConfigId
- the shipmentGatewayConfigIdresource
- 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 dctxcontext
- 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
-