public function call(string $method, RequestInterface $request)
    {
        try {
            $parameters = $request->toArray();

            return $this->__soapCall($method, ['parameters' => $parameters]);
        } catch (\Exception $exception) {
            if ($this->debug) {
                throw ClientException::create($this, $exception);
            }

            throw new ClientException($exception->getMessage(), $exception->getCode(), $exception);
        }
    }
public function call(string $method, RequestInterface $request)
    {
        try {
            $parameters = $request->toArray();

            return $this->__soapCall($method, ['parameters' => $parameters]);
        } catch (\Exception $exception) {
            if ($this->debug) {
                throw ClientException::create($this, $exception);
            }

            throw new ClientException($exception->getMessage(), $exception->getCode(), $exception);
        }
    }
public function call ( string $ method , RequestInterface $ request ) { try { $ parameters = $ request -> toArray ( ) ; return $ this -> __soapCall ( $ method , [ 'parameters' => $ parameters ] ) ; } catch ( \ Exception $ exception ) { if ( $ this -> debug ) { throw ClientException :: create ( $ this , $ exception ) ; } throw new ClientException ( $ exception -> getMessage ( ) , $ exception -> getCode ( ) , $ exception ) ; } }
Call the web service method.

@param string           $method
@param RequestInterface $request

@return mixed

@throws ClientException
Call the web service method .