original_string: public function callService($serviceName, $action, array $parameters = array(), array $files = array())
      {
          $httpClient = $this->getHTTPClient();
  
          $url = $this->getServiceUrl($serviceName, $action);
          $request = new Request('POST', $url, $this->getRequestHeaders($url, $parameters), $this->getRequestBody($parameters, $files));
  
          try {
              $response = $httpClient->send($request);
          } catch (GuzzleRequestException $exception) {
              $response = $exception->getResponse();
          }
  
          $this->validateAPIResponseCode($request, $response);
  
          return $response;
      }
code: public function callService($serviceName, $action, array $parameters = array(), array $files = array())
      {
          $httpClient = $this->getHTTPClient();
  
          $url = $this->getServiceUrl($serviceName, $action);
          $request = new Request('POST', $url, $this->getRequestHeaders($url, $parameters), $this->getRequestBody($parameters, $files));
  
          try {
              $response = $httpClient->send($request);
          } catch (GuzzleRequestException $exception) {
              $response = $exception->getResponse();
          }
  
          $this->validateAPIResponseCode($request, $response);
  
          return $response;
      }
code_tokens: public function callService ( $ serviceName , $ action , array $ parameters = array ( ) , array $ files = array ( ) ) { $ httpClient = $ this -> getHTTPClient ( ) ; $ url = $ this -> getServiceUrl ( $ serviceName , $ action ) ; $ request = new Request ( 'POST' , $ url , $ this -> getRequestHeaders ( $ url , $ parameters ) , $ this -> getRequestBody ( $ parameters , $ files ) ) ; try { $ response = $ httpClient -> send ( $ request ) ; } catch ( GuzzleRequestException $ exception ) { $ response = $ exception -> getResponse ( ) ; } $ this -> validateAPIResponseCode ( $ request , $ response ) ; return $ response ; }
docstring: Call a Tulip API service.
  
  @param string $serviceName
  @param string $action
  @param array  $parameters
  @param array  $files
  
  @return ResponseInterface
  
  @throws RequestException
docstring_tokens: Call a Tulip API service .