I'm trying to setup DHL but clients can'ts select any shipping method during checkout. I tried a lot of guides and posts but still got no solution (i'm testing in sandbox).
Here is an example request:
2017-06-26T17:58:28+00:00 DEBUG (7): Array
(
[try-0] => Array
(
[request] => <?xml version="1.0" encoding="UTF-8"?>
<p:DCTRequest xmlns:p="http://www.dhl.com" xmlns:p1="http://www.dhl.com/datatypes" xmlns:p2="http://www.dhl.com/DCTRequestdatatypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dhl.com DCT-req.xsd ">
<GetQuote xmlns="">
<Request>
<ServiceHeader>
<SiteID>EXAMPLESITEID</SiteID>
<Password>EXAMPLEPWD</Password>
</ServiceHeader>
</Request>
<From>
<CountryCode>IT</CountryCode>
<Postalcode>123456</Postalcode>
<City>ExampleCity</City>
</From>
<BkgDetails>
<PaymentCountryCode>IT</PaymentCountryCode>
<Date>2017-06-26</Date>
<ReadyTime>PT0H00M</ReadyTime>
<DimensionUnit>CM</DimensionUnit>
<WeightUnit>KG</WeightUnit>
<Pieces xmlns="">
<Piece xmlns="">
<PieceID>1</PieceID>
<Weight>10</Weight>
</Piece>
</Pieces>
<PaymentAccountNumber>123456789</PaymentAccountNumber>
<IsDutiable>Y</IsDutiable>
</BkgDetails>
<To>
<CountryCode>MX</CountryCode>
<Postalcode>11580</Postalcode>
<City>Miguel Hidalgo</City>
</To>
<Dutiable>
<DeclaredCurrency>EUR</DeclaredCurrency>
<DeclaredValue>139.90</DeclaredValue>
</Dutiable>
</GetQuote>
</p:DCTRequest>
[from_cache] => 1
[response] => <?xml version="1.0" encoding="UTF-8" standalone="no"?><res:DCTResponse xmlns:res='http://www.dhl.com' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation= 'http://www.dhl.com DCT-Response.xsd'>
<GetQuoteResponse>
<Response>
<ServiceHeader>
<MessageTime>2017-06-26T19:58:28.074+01:00</MessageTime>
<SiteID>EXAMPLESITEID</SiteID>
</ServiceHeader>
</Response>
<BkgDetails>
<OriginServiceArea>
<FacilityCode>HTD</FacilityCode>
<ServiceAreaCode>TSF</ServiceAreaCode>
</OriginServiceArea>
<DestinationServiceArea>
<FacilityCode>FMX</FacilityCode>
<ServiceAreaCode>FMX</ServiceAreaCode>
</DestinationServiceArea>
<QtdShp>
<GlobalProductCode>Q</GlobalProductCode>
<LocalProductCode>Q</LocalProductCode>
<ProductShortName>MEDICAL EXPRESS</ProductShortName>
<LocalProductName>MEDICAL EXPRESS NONDOC</LocalProductName>
<NetworkTypeCode>TD</NetworkTypeCode>
<POfferedCustAgreement>Y</POfferedCustAgreement>
<TransInd>N</TransInd>
<PickupDate>2017-06-26</PickupDate>
<PickupCutoffTime>PT19H</PickupCutoffTime>
<BookingTime>PT18H</BookingTime>
<WeightChargeTax>0.000</WeightChargeTax>
<TotalTransitDays>3</TotalTransitDays>
<PickupPostalLocAddDays>0</PickupPostalLocAddDays>
<DeliveryPostalLocAddDays>0</DeliveryPostalLocAddDays>
<PickupNonDHLCourierCode> </PickupNonDHLCourierCode>
<DeliveryNonDHLCourierCode> </DeliveryNonDHLCourierCode>
<DeliveryDate>2017-06-29</DeliveryDate>
<DeliveryTime>PT9H</DeliveryTime>
<DimensionalWeight>10.000</DimensionalWeight>
<WeightUnit>KG</WeightUnit>
<PickupDayOfWeekNum>1</PickupDayOfWeekNum>
<DestinationDayOfWeekNum>4</DestinationDayOfWeekNum>
<TotalTaxAmount>0.000</TotalTaxAmount>
</QtdShp>
<QtdShp><GlobalProductCode>P</GlobalProductCode><LocalProductCode>P</LocalProductCode><ProductShortName>EXPRESS WORLDWIDE</ProductShortName><LocalProductName>EXPRESS WORLDWIDE NONDOC</LocalProductName><NetworkTypeCode>TD</NetworkTypeCode><POfferedCustAgreement>N</POfferedCustAgreement><TransInd>Y</TransInd><PickupDate>2017-06-26</PickupDate><PickupCutoffTime>PT19H</PickupCutoffTime><BookingTime>PT18H</BookingTime><WeightChargeTax>0.000</WeightChargeTax><TotalTransitDays>3</TotalTransitDays><PickupPostalLocAddDays>0</PickupPostalLocAddDays><DeliveryPostalLocAddDays>0</DeliveryPostalLocAddDays><PickupNonDHLCourierCode> </PickupNonDHLCourierCode><DeliveryNonDHLCourierCode> </DeliveryNonDHLCourierCode><DeliveryDate>2017-06-29</DeliveryDate><DeliveryTime>PT23H59M</DeliveryTime><DimensionalWeight>10.000</DimensionalWeight><WeightUnit>KG</WeightUnit><PickupDayOfWeekNum>1</PickupDayOfWeekNum><DestinationDayOfWeekNum>4</DestinationDayOfWeekNum><TotalTaxAmount>0.000</TotalTaxAmount></QtdShp><QtdShp><GlobalProductCode>8</GlobalProductCode><LocalProductCode>8</LocalProductCode><ProductShortName>EXPRESS EASY</ProductShortName><LocalProductName>EXPRESS EASY NONDOC</LocalProductName><NetworkTypeCode>TD</NetworkTypeCode><POfferedCustAgreement>Y</POfferedCustAgreement><TransInd>N</TransInd><PickupDate>2017-06-26</PickupDate><PickupCutoffTime>PT19H</PickupCutoffTime><BookingTime>PT18H</BookingTime><WeightChargeTax>0.000</WeightChargeTax><TotalTransitDays>3</TotalTransitDays><PickupPostalLocAddDays>0</PickupPostalLocAddDays><DeliveryPostalLocAddDays>0</DeliveryPostalLocAddDays><PickupNonDHLCourierCode> </PickupNonDHLCourierCode><DeliveryNonDHLCourierCode> </DeliveryNonDHLCourierCode><DeliveryDate>2017-06-29</DeliveryDate><DeliveryTime>PT23H59M</DeliveryTime><DimensionalWeight>10.000</DimensionalWeight><WeightUnit>KG</WeightUnit><PickupDayOfWeekNum>1</PickupDayOfWeekNum><DestinationDayOfWeekNum>4</DestinationDayOfWeekNum><TotalTaxAmount>0.000</TotalTaxAmount>
</QtdShp>
</BkgDetails>
<Srvs>
<Srv>
<GlobalProductCode>Q</GlobalProductCode>
<MrkSrv>
<LocalProductCode>Q</LocalProductCode>
<ProductShortName>MEDICAL EXPRESS</ProductShortName>
<LocalProductName>MEDICAL EXPRESS NONDOC</LocalProductName>
<NetworkTypeCode>TD</NetworkTypeCode>
<POfferedCustAgreement>Y</POfferedCustAgreement>
<TransInd>N</TransInd>
</MrkSrv>
</Srv>
<Srv><GlobalProductCode>P</GlobalProductCode><MrkSrv><LocalProductCode>P</LocalProductCode><ProductShortName>EXPRESS WORLDWIDE</ProductShortName><LocalProductName>EXPRESS WORLDWIDE NONDOC</LocalProductName><NetworkTypeCode>TD</NetworkTypeCode><POfferedCustAgreement>N</POfferedCustAgreement><TransInd>Y</TransInd></MrkSrv></Srv>
<Srv><GlobalProductCode>8</GlobalProductCode><MrkSrv><LocalProductCode>8</LocalProductCode><ProductShortName>EXPRESS EASY</ProductShortName><LocalProductName>EXPRESS EASY NONDOC</LocalProductName><NetworkTypeCode>TD</NetworkTypeCode><POfferedCustAgreement>Y</POfferedCustAgreement><TransInd>N</TransInd></MrkSrv></Srv>
</Srvs>
</GetQuoteResponse>
</res:DCTResponse>
)
[__pid] => 22769
)
It looks like a success response to me but maybe it miss a TotalAmount tag to be accepted. Also it might be this tag is missing because I'm missing some setting about taxes and duties. Any help will be appreciated
Are you in test mode of DHL? If yes change the Gateway URL to "https://xmlpi-ea.dhl.com/XMLShippingServlet"