PreviousNext
Help > Programming with LAUNCHER Office > Webservices > Invoking service methods > Open
Open

The open service method establishes a connection with the Launcher server.

If « UseLdap=Yes » into the launcher.ini file, this method is also used to authenticate the REST Gateway web service client. He must include his username and password to authenticate (LDAP – Active Directory) his connection to the web service.

Here is an example of calling the open service method that connects to the Launcher server on localhost at port 6078 (which are also default values):

POST /launcher/open HTTP/1.1

Host: localhost:9090

Content-Type: application/JSON


{ "open": { "server":"localhost", "port":"6078", "username":"aura", "password":"aura" } } 

 

The above request is sent to the URL https://<IP address>:9090/launcher/open using the POST HTTP method.

If the authentication is successful, and the Launcher REST Gateway manages to connect to the Launcher Server, an integer representing the client id will be returned to the client. The client must include this id in all subsequent requests to the Launcher REST Gateway.