protected function call($command, $params, $data = [], $options = [])
    {
        $uri = $this->getRequestURI($command);
        $body = $this->getRequestBody($params, $data, $options);
        $xml = $this->client->post($uri, $body); // Make the request to web service
        return $this->factory->createResponse($xml, $this->module, $command);
    }
protected function call($command, $params, $data = [], $options = [])
    {
        $uri = $this->getRequestURI($command);
        $body = $this->getRequestBody($params, $data, $options);
        $xml = $this->client->post($uri, $body); // Make the request to web service
        return $this->factory->createResponse($xml, $this->module, $command);
    }
protected function call ( $ command , $ params , $ data = [ ] , $ options = [ ] ) { $ uri = $ this -> getRequestURI ( $ command ) ; $ body = $ this -> getRequestBody ( $ params , $ data , $ options ) ; $ xml = $ this -> client -> post ( $ uri , $ body ) ; // Make the request to web service return $ this -> factory -> createResponse ( $ xml , $ this -> module , $ command ) ; }
Make the call using the client

@param string $command Command to call
@param string $params Options
@param array $data Data to send [optional]
@param array $options Options to add for configurations [optional]

@return Response
Make the call using the client