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

The cmd web method is used to execute Launcher CMD verbs. The cmd method can be called using HTTP POST requests because the parameters of the command, parm1 and parm2, are sent in the POST message body.

To call the cmd method, it is necessary to include the client id, the verb, parm1 and parm2 in the JSON message in the POST body as shown in the following example:

POST /launcher/cmd HTTP/1.1

Host: localhost:9090

Content-Type: application/json

Cache-Control: no-cache

 

{"cmd":{"verb":"WORDOPEN","parm1":"new","parm2":"visible","id":"1"}}

 

When the command is executed, the value returned by the Launcher Server will be forwarded by the Launcher REST Gateway to the client which made the request:

         *ACK or *MSG if the command is successful

         *REJ if the command fails. Further details about the error are available into the Launcher Server trace.