Class DhlServices
java.lang.Object
org.apache.ofbiz.shipment.thirdparty.dhl.DhlServices
DHL ShipmentServices
Implementation of DHL US domestic shipment interface using DHL ShipIT XML APi.
Shipment services not supported in DHL ShipIT 1.1- Multiple Piece shipping (Shipment must not have more than one ShipmentPackage)
- Dynamic editing of previously submitted shipment (void first then resubmit instead)
- Label size 4"x6"
- Out of origin shipping
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Document
createAccessRequestDocument
(Delegator delegator, String shipmentGatewayConfigId, String resource) dhlRateEstimate
(DispatchContext dctx, Map<String, ? extends Object> context) dhlRegisterInquire
(DispatchContext dctx, Map<String, ? extends Object> context) dhlShipmentConfirm
(DispatchContext dctx, Map<String, ? extends Object> context) handleDhlRateResponse
(Document rateResponseDocument, Locale locale) handleDhlRegisterResponse
(Document registerResponseDocument, Locale locale) handleDhlShipmentConfirmResponse
(String rateResponseString, GenericValue shipmentRouteSegment, List<GenericValue> shipmentPackageRouteSegs, Locale locale) static void
handleErrors
(Element responseElement, List<Object> errorList, Locale locale) static String
sendDhlRequest
(String xmlString, Delegator delegator, String shipmentGatewayConfigId, String resource, Locale locale) Opens a URL to DHL and makes a request.
-
Field Details
-
SHIPMENT_PROPERTIES_FILE
- See Also:
-
DHL_WEIGHT_UOM_ID
- See Also:
-
-
Constructor Details
-
DhlServices
public DhlServices()
-
-
Method Details
-
sendDhlRequest
public static String sendDhlRequest(String xmlString, Delegator delegator, String shipmentGatewayConfigId, String resource, Locale locale) throws org.apache.ofbiz.shipment.thirdparty.dhl.DhlConnectException Opens a URL to DHL and makes a request.- Parameters:
xmlString
- Name of the DHL service to invokedelegator
- the delegatorshipmentGatewayConfigId
- the shipment gateway config idresource
- the RESOURCE file (i.e. shipment.properties)locale
- locale in use- Returns:
- XML string response from DHL
- Throws:
org.apache.ofbiz.shipment.thirdparty.dhl.DhlConnectException
-
dhlRateEstimate
-
handleDhlRateResponse
-
dhlRegisterInquire
-
handleDhlRegisterResponse
-
dhlShipmentConfirm
-
handleDhlShipmentConfirmResponse
public static Map<String,Object> handleDhlShipmentConfirmResponse(String rateResponseString, GenericValue shipmentRouteSegment, List<GenericValue> shipmentPackageRouteSegs, Locale locale) throws GenericEntityException - Throws:
GenericEntityException
-
createAccessRequestDocument
-
handleErrors
-