@@ -1522,6 +1522,7 @@ protected function _getMinDimension($dimensionUnit)
1522
1522
* @SuppressWarnings(PHPMD.NPathComplexity)
1523
1523
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
1524
1524
*/
1525
+
1525
1526
protected function _doRequest ()
1526
1527
{
1527
1528
$ rawRequest = $ this ->_request ;
@@ -1530,8 +1531,8 @@ protected function _doRequest()
1530
1531
'<req:ShipmentRequest ' .
1531
1532
' xmlns:req="http://www.dhl.com" ' .
1532
1533
' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' .
1533
- ' xsi:schemaLocation="http://www.dhl.com ship-val-global-req-6.0 .xsd" ' .
1534
- ' schemaVersion="6.0 " /> ' ;
1534
+ ' xsi:schemaLocation="http://www.dhl.com ship-val-global-req.xsd" ' .
1535
+ ' schemaVersion="6.2 " /> ' ;
1535
1536
$ xml = $ this ->_xmlElFactory ->create (['data ' => $ xmlStr ]);
1536
1537
1537
1538
$ nodeRequest = $ xml ->addChild ('Request ' , '' , '' );
@@ -1545,6 +1546,10 @@ protected function _doRequest()
1545
1546
$ nodeServiceHeader ->addChild ('SiteID ' , (string )$ this ->getConfigData ('id ' ));
1546
1547
$ nodeServiceHeader ->addChild ('Password ' , (string )$ this ->getConfigData ('password ' ));
1547
1548
1549
+ $ nodeMetaData = $ nodeRequest ->addChild ('MetaData ' );
1550
+ $ nodeMetaData ->addChild ('SoftwareName ' , $ this ->buildSoftwareName ());
1551
+ $ nodeMetaData ->addChild ('SoftwareVersion ' , $ this ->buildSoftwareVersion ());
1552
+
1548
1553
$ originRegion = $ this ->getCountryParams (
1549
1554
$ this ->_scopeConfig ->getValue (
1550
1555
Shipment::XML_PATH_STORE_COUNTRY_ID ,
@@ -1585,10 +1590,10 @@ protected function _doRequest()
1585
1590
->getRecipientContactCompanyName () : $ rawRequest
1586
1591
->getRecipientContactPersonName ();
1587
1592
1588
- $ nodeConsignee ->addChild ('CompanyName ' , is_string ($ companyName ) ? substr ($ companyName , 0 , 35 ) : '' );
1593
+ $ nodeConsignee ->addChild ('CompanyName ' , is_string ($ companyName ) ? substr ($ companyName , 0 , 60 ) : '' );
1589
1594
1590
1595
$ address = $ rawRequest ->getRecipientAddressStreet1 () . ' ' . $ rawRequest ->getRecipientAddressStreet2 ();
1591
- $ address = $ this ->string ->split ($ address , 35 , false , true );
1596
+ $ address = $ this ->string ->split ($ address , 45 , false , true );
1592
1597
if (is_array ($ address )) {
1593
1598
foreach ($ address as $ addressLine ) {
1594
1599
$ nodeConsignee ->addChild ('AddressLine ' , $ addressLine );
@@ -1657,7 +1662,7 @@ protected function _doRequest()
1657
1662
$ nodeShipper ->addChild ('RegisteredAccount ' , (string )$ this ->getConfigData ('account ' ));
1658
1663
1659
1664
$ address = $ rawRequest ->getShipperAddressStreet1 () . ' ' . $ rawRequest ->getShipperAddressStreet2 ();
1660
- $ address = $ this ->string ->split ($ address , 35 , false , true );
1665
+ $ address = $ this ->string ->split ($ address , 45 , false , true );
1661
1666
if (is_array ($ address )) {
1662
1667
foreach ($ address as $ addressLine ) {
1663
1668
$ nodeShipper ->addChild ('AddressLine ' , $ addressLine );
@@ -1714,7 +1719,6 @@ protected function _doRequest()
1714
1719
$ this ->_debug ($ debugData );
1715
1720
}
1716
1721
$ this ->_isShippingLabelFlag = true ;
1717
-
1718
1722
return $ this ->_parseResponse ($ responseBody );
1719
1723
}
1720
1724
@@ -1940,7 +1944,7 @@ protected function _parseXmlTrackingResponse($trackings, $response)
1940
1944
$ shipmentEventArray ['deliverydate ' ] = (string )$ shipmentEvent ->Date ;
1941
1945
$ shipmentEventArray ['deliverytime ' ] = (string )$ shipmentEvent ->Time ;
1942
1946
$ shipmentEventArray ['deliverylocation ' ] = (string )$ shipmentEvent ->ServiceArea
1943
- ->Description . ' [ ' . (string )$ shipmentEvent ->ServiceArea ->ServiceAreaCode . '] ' ;
1947
+ ->Description . ' [ ' . (string )$ shipmentEvent ->ServiceArea ->ServiceAreaCode . '] ' ;
1944
1948
$ packageProgress [] = $ shipmentEventArray ;
1945
1949
}
1946
1950
$ awbinfoData ['progressdetail ' ] = $ packageProgress ;
0 commit comments