我在使用Magento的默认DHL运输模块时遇到了问题。根据调试日志。发送到测试网关URL @ https://xmlpitest-ea.dhl.com/XMLShippingServlet的请求似乎按预期返回响应。但是,当我将网关切换到生成的@ https://xmlpi-ea.dhl.com/XMLShippingServlet时,响应返回为空字符串(空白)。
以下是调试日志文件
中的请求XML示例<?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>
<Request>
<ServiceHeader>
<SiteID>[hidden]</SiteID>
<Password>[hidden]</Password>
</ServiceHeader>
</Request>
<From>
<CountryCode>BR</CountryCode>
<Postalcode>04602000</Postalcode>
<City>São Paulo</City>
</From>
<BkgDetails>
<PaymentCountryCode>BR</PaymentCountryCode>
<Date>2014-03-13</Date>
<ReadyTime>PT10H00M</ReadyTime>
<DimensionUnit>CM</DimensionUnit>
<WeightUnit>KG</WeightUnit>
<Pieces>
<Piece>
<PieceID>1</PieceID>
<Weight>17.5</Weight>
</Piece>
</Pieces>
<PaymentAccountNumber>[hidden]</PaymentAccountNumber>
<IsDutiable>Y</IsDutiable>
</BkgDetails>
<To>
<CountryCode>BR</CountryCode>
<Postalcode>03318-000</Postalcode>
<City>Tatuapé</City>
</To>
<Dutiable>
<DeclaredCurrency>BRL</DeclaredCurrency>
<DeclaredValue>14299.48</DeclaredValue>
</Dutiable>
</GetQuote>
</p:DCTRequest>
之前有没有人遇到过同样的问题,你是如何解决这个问题的?我试图通过论坛,推特和Facebook联系Magento,但从未收到过他们的回复。
谢谢,
帕特