Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DotNet.php
Go to the documentation of this file.
1 <?php
24 #require_once 'Zend/Soap/Client.php';
25 
26 if (extension_loaded('soap')) {
27 
41 class Zend_Soap_Client_DotNet extends Zend_Soap_Client
42 {
49  public function __construct($wsdl = null, $options = null)
50  {
51  // Use SOAP 1.1 as default
52  $this->setSoapVersion(SOAP_1_1);
53 
54  parent::__construct($wsdl, $options);
55  }
56 
57 
66  protected function _preProcessArguments($arguments)
67  {
68  if (count($arguments) > 1 ||
69  (count($arguments) == 1 && !is_array(reset($arguments)))
70  ) {
71  #require_once 'Zend/Soap/Client/Exception.php';
72  throw new Zend_Soap_Client_Exception('.Net webservice arguments have to be grouped into array: array(\'a\' => $a, \'b\' => $b, ...).');
73  }
74 
75  // Do nothing
76  return $arguments;
77  }
78 
86  protected function _preProcessResult($result)
87  {
88  $resultProperty = $this->getLastMethod() . 'Result';
89 
90  return $result->$resultProperty;
91  }
92 
93 }
94 
95 } // end if (extension_loaded('soap')
setSoapVersion($version)
Definition: Client.php:350
$arguments
__construct($wsdl=null, $options=null)
Definition: Client.php:149
_preProcessResult($result)
Definition: Client.php:1094
_preProcessArguments($arguments)
Definition: Client.php:1081