Skip to content

Commit 4c56bf0

Browse files
author
Joan He
committed
MC-13747: Update ShipmentValidationRequest to DHL 6.0 version
1 parent f582ab8 commit 4c56bf0

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

app/code/Magento/Dhl/Model/Carrier.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,8 +1418,8 @@ protected function _doRequest()
14181418
'<req:ShipmentRequest' .
14191419
' xmlns:req="http://www.dhl.com"' .
14201420
' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"' .
1421-
' xsi:schemaLocation="http://www.dhl.com ship-val-global-req-6.2.xsd"' .
1422-
' schemaVersion="6.2" />';
1421+
' xsi:schemaLocation="http://www.dhl.com ship-val-global-req-6.0.xsd"' .
1422+
' schemaVersion="6.0" />';
14231423
$xml = $this->_xmlElFactory->create(['data' => $xmlStr]);
14241424

14251425
$nodeRequest = $xml->addChild('Request', '', '');
@@ -1433,10 +1433,6 @@ protected function _doRequest()
14331433
$nodeServiceHeader->addChild('SiteID', (string)$this->getConfigData('id'));
14341434
$nodeServiceHeader->addChild('Password', (string)$this->getConfigData('password'));
14351435

1436-
$nodeMetaData = $nodeRequest->addChild('MetaData');
1437-
$nodeMetaData->addChild('SoftwareName', $this->buildSoftwareName());
1438-
$nodeMetaData->addChild('SoftwareVersion', $this->buildSoftwareVersion());
1439-
14401436
$originRegion = $this->getCountryParams(
14411437
$this->_scopeConfig->getValue(
14421438
Shipment::XML_PATH_STORE_COUNTRY_ID,

app/code/Magento/Dhl/Test/Unit/Model/_files/shipment_request.xml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,14 @@
66
*/
77
-->
88
<req:ShipmentRequest xmlns:req="http://www.dhl.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9-
xsi:schemaLocation="http://www.dhl.com ship-val-global-req-6.2.xsd" schemaVersion="6.2">
9+
xsi:schemaLocation="http://www.dhl.com ship-val-global-req-6.0.xsd" schemaVersion="6.0">
1010
<Request xmlns="">
1111
<ServiceHeader>
1212
<MessageTime>currentTime</MessageTime>
1313
<MessageReference>MAGE_SHIP_28TO32_Char_CHECKED</MessageReference>
1414
<SiteID>some ID</SiteID>
1515
<Password>some password</Password>
1616
</ServiceHeader>
17-
<MetaData>
18-
<SoftwareName>Software_Product_Name_30_Char_</SoftwareName>
19-
<SoftwareVersion>10Char_Ver</SoftwareVersion>
20-
</MetaData>
2117
</Request>
2218
<RegionCode xmlns="">CHECKED</RegionCode>
2319
<RequestedPickupTime xmlns="">N</RequestedPickupTime>

0 commit comments

Comments
 (0)