File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/Usps/Model Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -512,7 +512,7 @@ protected function _parseXmlResponse($response)
512
512
$ response
513
513
);
514
514
}
515
- $ xml = $ this ->parseXml ($ response, ' Magento\Shipping\Model\Simplexml\Element ' );
515
+ $ xml = $ this ->parseXml ($ response );
516
516
517
517
if (is_object ($ xml )) {
518
518
$ allowedMethods = explode (', ' , $ this ->getConfigData ('allowed_methods ' ));
@@ -1042,7 +1042,7 @@ protected function _parseXmlTrackingResponse($trackingvalue, $response)
1042
1042
$ resultArr = [];
1043
1043
if (strlen (trim ($ response )) > 0 ) {
1044
1044
if (strpos (trim ($ response ), '<?xml ' ) === 0 ) {
1045
- $ xml = $ this ->parseXml ($ response, ' Magento\Shipping\Model\Simplexml\Element ' );
1045
+ $ xml = $ this ->parseXml ($ response );
1046
1046
if (is_object ($ xml )) {
1047
1047
if (isset ($ xml ->Number ) && isset ($ xml ->Description ) && (string )$ xml ->Description != '' ) {
1048
1048
$ errorTitle = (string )$ xml ->Description ;
@@ -1869,7 +1869,7 @@ protected function _doShipmentRequest(\Magento\Framework\Object $request)
1869
1869
$ client ->setParameterGet ('XML ' , $ requestXml );
1870
1870
$ response = $ client ->request ()->getBody ();
1871
1871
1872
- $ response = $ this ->parseXml ($ response, ' Magento\Shipping\Model\Simplexml\Element ' );
1872
+ $ response = $ this ->parseXml ($ response );
1873
1873
if ($ response === false || $ response ->getName () == 'Error ' ) {
1874
1874
$ debugData ['result ' ] = [
1875
1875
'error ' => $ response ->Description ,
You can’t perform that action at this time.
0 commit comments