Send a soap request to the controller for this queue.

@param string $service The service to send the request to
@param string $action The action to call
@param array $params The parameters to pass

@return mixed
323382
protected function soap(string $service, string $action, array $params = [])
    {
        $params["ObjectID"] = $this->id;

        if ($action === "Browse") {
            $params["Filter"] = "";
            $params["SortCriteria"] = "";
        }

        return $this->controller->soap($service, $action, $params);
    }
445999
public function postRequest( $action, array $params, EditInfo $editInfo = null ) {
		if ( $editInfo !== null ) {
			$params = array_merge( $this->getEditInfoParams( $editInfo ), $params );
		}

		$params['token'] = $this->api->getToken();
		return $this->api->postRequest( new SimpleRequest( $action, $params ) );
	}
239043
public function amOnAction($action, $params = [])
    {
        $route = $this->getRouteByAction($action);
        $absolute = !is_null($route->domain());
        $url = $this->app['url']->action($action, $params, $absolute);

        $this->amOnPage($url);
    }
454801
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;
    }
478124
public function post($account, $action = '', $parameters = null, $file = null, $httpHeadersToSet = array())
    {
        return $this->sendRequest('POST', $account, $action, $parameters, $file, null, $httpHeadersToSet);
    }
1143802
protected function request($method, $param = array(), $catchException = true)
    {
        if (!$this->session) {
            $this->login();
        }
        $this->lastException = null;
        try {

            // add as first parameter the session
            array_unshift($param, $this->session);
            $response = call_user_func_array(array($this->soapClient, $method), $param);
        } catch (\SoapFault $e) {
            if ($catchException) {
                $this->lastException = $e;

                return false;
            } else {
                throw $e;
            }
        }

        return $response;
    }
221536
protected function soapCall($action, $parameters = null)
    {
        // deep black magic
        $stfu = error_reporting();
        error_reporting(0);
        $response = $this->soap->$action($parameters);
        error_reporting($stfu);
        $response = \Metaclassing\Utility::encodeJson($response);
        $response = \Metaclassing\Utility::decodeJson($response);
        $this->log[] = [
                        'request' => [
                                    'action'     => $action,
                                    'parameters' => $parameters,
                                    //'xml' => \Metaclassing\Utility::xmlPrettyPrint($this->soap->__getLastRequest()),
                                    ],
                        'response' => [
                                    'response' => $response,
                                    //'xml' => \Metaclassing\Utility::xmlPrettyPrint( $this->soap->__getLastResponse() ),
                                    ],
                        ];

        return $response;
    }
146695
public function handleController(
        $controller, $action = null, array $params = null, $model = null
    ) {

        ! $model || $model = $this->modelFactory->create(null, $model);

        $this->setController(
            $this->controllerFactory->create($params, $controller, $model)
        );

        if (!is_null($action)) {
            $this->setControllerResult(
                $this->executeMethod($this->getController(), $action, $params, $model)
            );
        }
    }
578137
public function callAction(string $action, ?DataMap $params = null): void
    {
        list ($moduleName, $controllerName, $actionName) = $this->getFullAction($action);
        $this->routeInfo->moduleName = $moduleName;
        $this->routeInfo->controllerName = $controllerName;
        $this->routeInfo->actionName = $actionName;
        if ($params != null) {
            $this->routeInfo->params = $params;
        }
        $this->invokeRoute();
    }
353902
public function forward($controller, $action = null, array $params = array())
    {
        $this->response = $this->dispatch($controller, $action, $params);
        $this->preventPreviousDispatch();
    }
482224
protected function sendGetRequest($resource, $params = [])
    {
        $response = $this->sendRequest(
            'GET',
            $this->getServiceUrl($resource, $params),
            [
                'headers' => [
                    'Accept' => 'application/x-yametrika+json',
                    'Content-Type' => 'application/x-yametrika+json',
                    'Authorization' => 'OAuth ' . $this->getAccessToken(),
                ]
            ]
        );

        $decodedResponseBody = $this->getDecodedBody($response->getBody());

        if (isset($decodedResponseBody['links']) && isset($decodedResponseBody['links']['next'])) {
            $url = $decodedResponseBody['links']['next'];
            unset($decodedResponseBody['rows']);
            unset($decodedResponseBody['links']);
            return $this->getNextPartOfList($url, $decodedResponseBody);
        }
        return $decodedResponseBody;
    }
901229
def request(action, data = nil)
      session.request(
        Endpoint.new.soap_action_name(entity_class, action),
        data
      )
    end
265202
public Api getActionResult(String action, String params) throws Exception {
    Api result = this.getActionResult(action, params, null, null);
    return result;
  }
529115
function post($action,$params = array(),$options = array()){
		$options["method"] = "POST";
		return $this->_doRequest($action,$params,$options);
	}
111923
protected function request($action = '', array $params = [])
    {

        $params['Token'] = $this->config['api']['token'];
        if ($action !== '') {
            $params['Action'] = $action;
        }

        $query = http_build_query($params);
        $url   = $this->config['api']['url'];

        $ch = curl_init();

        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_HEADER, 0);
        curl_setopt($ch, CURLOPT_POST, 1);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $query);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
        curl_setopt($ch, CURLOPT_TIMEOUT, 60);

        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

        $result = curl_exec($ch);
        curl_close($ch);

        if (!$result) {

            throw new Exception('Connection failed. Reason unknown.');
        }

        return $result;
    }
327393
public function call(array $service, $params = []): ClientContract
    {
        $this->client->connection([
            'name'     => $service['name'],
            'driver'   => $this->config['driver'],
            'host'     => $service['host'],
            'port'     => $service['port'],
            'settings' => array_merge($this->defaultConfig, $this->config['options'] ?? [], $this->options[$service['name']] ?? []),
        ])->handle('/', ['headers' => $this->headers, 'method' => $this->method, 'payload' => $params]);

        $this->statusCode = $this->client->getStatusCode();
        $this->content = $this->client->getContent();

        $this->client->disconnection();

        return $this;
    }
975798
public function toRoute($action, $params=[])
    {
        $params = (array)$params;
        $url = URL::route($this->routePrefix . '.' . $action, $params);

        if ($passThruParams = $this->getPassThruParams()) {
            $url .= '?' . http_build_query($passThruParams);
        }

        return $url;

    }