@@ -1522,6 +1522,7 @@ protected function _getMinDimension($dimensionUnit)
15221522 * @SuppressWarnings(PHPMD.NPathComplexity)
15231523 * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
15241524 */
1525+
15251526 protected function _doRequest ()
15261527 {
15271528 $ rawRequest = $ this ->_request ;
@@ -1530,8 +1531,8 @@ protected function _doRequest()
15301531 '<req:ShipmentRequest ' .
15311532 ' xmlns:req="http://www.dhl.com" ' .
15321533 ' 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 " /> ' ;
15351536 $ xml = $ this ->_xmlElFactory ->create (['data ' => $ xmlStr ]);
15361537
15371538 $ nodeRequest = $ xml ->addChild ('Request ' , '' , '' );
@@ -1545,6 +1546,10 @@ protected function _doRequest()
15451546 $ nodeServiceHeader ->addChild ('SiteID ' , (string )$ this ->getConfigData ('id ' ));
15461547 $ nodeServiceHeader ->addChild ('Password ' , (string )$ this ->getConfigData ('password ' ));
15471548
1549+ $ nodeMetaData = $ nodeRequest ->addChild ('MetaData ' );
1550+ $ nodeMetaData ->addChild ('SoftwareName ' , $ this ->buildSoftwareName ());
1551+ $ nodeMetaData ->addChild ('SoftwareVersion ' , $ this ->buildSoftwareVersion ());
1552+
15481553 $ originRegion = $ this ->getCountryParams (
15491554 $ this ->_scopeConfig ->getValue (
15501555 Shipment::XML_PATH_STORE_COUNTRY_ID ,
@@ -1585,10 +1590,10 @@ protected function _doRequest()
15851590 ->getRecipientContactCompanyName () : $ rawRequest
15861591 ->getRecipientContactPersonName ();
15871592
1588- $ nodeConsignee ->addChild ('CompanyName ' , is_string ($ companyName ) ? substr ($ companyName , 0 , 35 ) : '' );
1593+ $ nodeConsignee ->addChild ('CompanyName ' , is_string ($ companyName ) ? substr ($ companyName , 0 , 60 ) : '' );
15891594
15901595 $ address = $ rawRequest ->getRecipientAddressStreet1 () . ' ' . $ rawRequest ->getRecipientAddressStreet2 ();
1591- $ address = $ this ->string ->split ($ address , 35 , false , true );
1596+ $ address = $ this ->string ->split ($ address , 45 , false , true );
15921597 if (is_array ($ address )) {
15931598 foreach ($ address as $ addressLine ) {
15941599 $ nodeConsignee ->addChild ('AddressLine ' , $ addressLine );
@@ -1657,7 +1662,7 @@ protected function _doRequest()
16571662 $ nodeShipper ->addChild ('RegisteredAccount ' , (string )$ this ->getConfigData ('account ' ));
16581663
16591664 $ address = $ rawRequest ->getShipperAddressStreet1 () . ' ' . $ rawRequest ->getShipperAddressStreet2 ();
1660- $ address = $ this ->string ->split ($ address , 35 , false , true );
1665+ $ address = $ this ->string ->split ($ address , 45 , false , true );
16611666 if (is_array ($ address )) {
16621667 foreach ($ address as $ addressLine ) {
16631668 $ nodeShipper ->addChild ('AddressLine ' , $ addressLine );
@@ -1714,7 +1719,6 @@ protected function _doRequest()
17141719 $ this ->_debug ($ debugData );
17151720 }
17161721 $ this ->_isShippingLabelFlag = true ;
1717-
17181722 return $ this ->_parseResponse ($ responseBody );
17191723 }
17201724
@@ -1940,7 +1944,7 @@ protected function _parseXmlTrackingResponse($trackings, $response)
19401944 $ shipmentEventArray ['deliverydate ' ] = (string )$ shipmentEvent ->Date ;
19411945 $ shipmentEventArray ['deliverytime ' ] = (string )$ shipmentEvent ->Time ;
19421946 $ shipmentEventArray ['deliverylocation ' ] = (string )$ shipmentEvent ->ServiceArea
1943- ->Description . ' [ ' . (string )$ shipmentEvent ->ServiceArea ->ServiceAreaCode . '] ' ;
1947+ ->Description . ' [ ' . (string )$ shipmentEvent ->ServiceArea ->ServiceAreaCode . '] ' ;
19441948 $ packageProgress [] = $ shipmentEventArray ;
19451949 }
19461950 $ awbinfoData ['progressdetail ' ] = $ packageProgress ;
0 commit comments