Skip to content

Commit f555e5b

Browse files
committed
MAGETWO-35076: Impossible to place order with DHL EU shipping method
- CR Changes
1 parent 1506ae4 commit f555e5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ protected function _parseXmlResponse($response)
512512
$response
513513
);
514514
}
515-
$xml = $this->parseXml($response, 'Magento\Shipping\Model\Simplexml\Element');
515+
$xml = $this->parseXml($response);
516516

517517
if (is_object($xml)) {
518518
$allowedMethods = explode(',', $this->getConfigData('allowed_methods'));
@@ -1042,7 +1042,7 @@ protected function _parseXmlTrackingResponse($trackingvalue, $response)
10421042
$resultArr = [];
10431043
if (strlen(trim($response)) > 0) {
10441044
if (strpos(trim($response), '<?xml') === 0) {
1045-
$xml = $this->parseXml($response, 'Magento\Shipping\Model\Simplexml\Element');
1045+
$xml = $this->parseXml($response);
10461046
if (is_object($xml)) {
10471047
if (isset($xml->Number) && isset($xml->Description) && (string)$xml->Description != '') {
10481048
$errorTitle = (string)$xml->Description;
@@ -1869,7 +1869,7 @@ protected function _doShipmentRequest(\Magento\Framework\Object $request)
18691869
$client->setParameterGet('XML', $requestXml);
18701870
$response = $client->request()->getBody();
18711871

1872-
$response = $this->parseXml($response, 'Magento\Shipping\Model\Simplexml\Element');
1872+
$response = $this->parseXml($response);
18731873
if ($response === false || $response->getName() == 'Error') {
18741874
$debugData['result'] = [
18751875
'error' => $response->Description,

0 commit comments

Comments
 (0)