public function call(string $method, array $arguments): ResponseInterface
    {
        try {
            return $this->__soapCall($method, $arguments, null, $this->getHeader());
        } catch (\Exception $e) {
            $exception = new ClientException($e->getMessage(), $e->getCode(), $e);

            if ($this->debug) {
                $exception->request = ClientException::formatXml($this->__getLastRequest());
                $exception->response = ClientException::formatXml($this->__getLastResponse());
            }

            throw $exception;
        }
    }
public function call(string $method, array $arguments): ResponseInterface
    {
        try {
            return $this->__soapCall($method, $arguments, null, $this->getHeader());
        } catch (\Exception $e) {
            $exception = new ClientException($e->getMessage(), $e->getCode(), $e);

            if ($this->debug) {
                $exception->request = ClientException::formatXml($this->__getLastRequest());
                $exception->response = ClientException::formatXml($this->__getLastResponse());
            }

            throw $exception;
        }
    }
public function call ( string $ method , array $ arguments ) : ResponseInterface { try { return $ this -> __soapCall ( $ method , $ arguments , null , $ this -> getHeader ( ) ) ; } catch ( \ Exception $ e ) { $ exception = new ClientException ( $ e -> getMessage ( ) , $ e -> getCode ( ) , $ e ) ; if ( $ this -> debug ) { $ exception -> request = ClientException :: formatXml ( $ this -> __getLastRequest ( ) ) ; $ exception -> response = ClientException :: formatXml ( $ this -> __getLastResponse ( ) ) ; } throw $ exception ; } }
Performs the soap call.

@param string $method
@param array  $arguments

@return ResponseInterface
@throws ClientException
Performs the soap call .