> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenSessionEx

> Öffnen Sie mit der Web Services API-Methode OpenSessionEx eine Verbindung zum FlexiCapture Application Server.

<div id="what-it-does">
  ## Funktion
</div>

Öffnet eine Verbindung zum Application Server. Diese Methode ersetzt die [OpenSession](/de/flexi-capture/api/methods/open-session)-Methode aus früheren Versionen der Web Services API.

<div id="definition">
  ## Definition
</div>

```csharp theme={null}
int OpenSessionEx(int roleType, int stationType);
```

<div id="parameters">
  ## Parameter
</div>

| Name          | Typ   | Description                                                                                                                                         |
| ------------- | ----- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| `roleType`    | `int` | Der Typ der Rolle, die für die Verbindung verwendet wird. Mögliche Werte finden Sie unter [RoleType](/de/flexi-capture/api/structures/t-role-type). |
| `stationType` | `int` | Der Typ der Verbindungsstation. Mögliche Werte finden Sie unter [WorkstationType](/de/flexi-capture/api/structures/t-workstation-type).             |

<div id="returned-value">
  ## Rückgabewert
</div>

| Typ   | Beschreibung                             |
| ----- | ---------------------------------------- |
| `int` | Die ID der derzeit geöffneten Verbindung |
