我们刚刚尝试在我们的 Magento 后端启用 DHL 运输方式,并且由于某种原因,上面提到的“站点 ID 错误”错误不断出现。我们已经检查并重新检查了我们的信息是否正确,并尝试搜索类似的问题,但找不到任何匹配或已回答的问题。在挖掘日志后,我们发现了以下内容:
(
[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>*site id*</SiteID><Password>*password*</Password></ServiceHeader></Request><From><CountryCode>EE</CountryCode><Postalcode>11911</Postalcode><City>Tallinn</City></From><BkgDetails><PaymentCountryCode>EE</PaymentCountryCode><Date>2013-03-04</Date><ReadyTime>PT48H00M</ReadyTime><DimensionUnit>CM</DimensionUnit><WeightUnit>KG</WeightUnit><Pieces xmlns=""><Piece xmlns=""><PieceID>1</PieceID><Weight>1.5</Weight></Piece></Pieces><PaymentAccountNumber>323080462</PaymentAccountNumber><IsDutiable>Y</IsDutiable></BkgDetails><To><CountryCode>SG</CountryCode><Postalcode>510583</Postalcode><City>Singapore</City></To><Dutiable><DeclaredCurrency>EUR</DeclaredCurrency><DeclaredValue>166.25</DeclaredValue></Dutiable></GetQuote></p:DCTRequest>
[result] => <?xml version="1.0" encoding="UTF-8"?><res:ErrorResponse xmlns:res='http://www.dhl.com' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation= 'http://www.dhl.com err-res.xsd'>
<Response>
<ServiceHeader>
<MessageTime>2013-03-03T22:58:48+00:00</MessageTime>
<SiteID>*site id*</SiteID>
<Password>*site id*</Password>
</ServiceHeader>
<Status>
<ActionStatus>Error</ActionStatus>
<Condition>
<ConditionCode>100</ConditionCode>
<ConditionData>Validation Failure:Site Id is wrong</ConditionData>
</Condition>
</Status>
</Response></res:ErrorResponse>
[__pid] => 11937
)
2013-03-04T00:58:45+00:00 DEBUG (7): Array
(
[100] => Error #100 : Validation Failure:Site Id is wrong
[__pid] => 11937
)
如果您仔细阅读,稍后的代码似乎出于某种原因将站点 ID 作为站点 ID 和密码发送(我们再次检查了站点 ID 和密码是否已正确输入到配置中)。
有没有人遇到过类似的问题或知道我们可以在哪里寻找解决方案?
任何输入表示赞赏。