Reference / Server API functions - version 1.3 only |
This function creates and starts the server. For development or testing purposes, you may start a Web Service server as a single server where only one request at a time will be able to be processed. For deployment, you may start a Web Service server with an application server able to handle several connections at one time using a load-balancing algorithm. The value of the parameter passed to the function determines which method is used.
FUNCTION fgl_ws_server_start(tcpPort VARCHAR)
tcpPort is a string representing either:
the socket port number (for a single Web Service server)
the host and port value separated by a colon (for a Web Service server connecting to an application server). The value of port is an offset beginning at 6400.
To start a standalone Web Service server:
CALL fgl_ws_server_start("8080") # A single Server is listening # on port number: 8080
To start a Web Service server attempting to connect to an application server:
CALL fgl_ws_server_start("zeus:5") # The server attempt to connect # to an application server located # on host zeus and listening # on the port number 6405