Tips_todo   >   Internet   >   Web App Server

Web App Server

The Omnis Web App Server process is activated by a CGI installed on the web server. The CGI listens for requests on the $serverport specified in your Omnis Studio preferences (default 5912). When an HTTP POST or GET is received on the specified port the CGI forwards the request to the Omnis library and remote task class specified in the HTTP request. (OmnisLibrary, OmnisClass) The Omnis Web App Server process instantiates the remote task passing along the HTTP POST or GET parameters to the $construct method of the remote task.

Ping Web App Server

Sometimes I have trouble figuring out what is going wrong with my Omnis Web App and want to do a simple check to see if the Omnis Web Server is up and running and listening on the specified port.

I developed a simple pingOmnisWebServer library which responds to GET messages sent from a web page where you can enter the web server's IP address, library name, and the remote task name. (JavaScript is used to prepare and send the message to the Omnis web server.)

The ping Omnis web app server page is located at http://www.studiotips.net/webapps/pingwebapp.html

You can download the pingOmnisWebServer library at: http://www.studiotips.net/webapps/ping.zip

I recommend that you install the pingOmnisWebServer library in the startup folder of your Omnis application so that Omnis will automatically open the library and have it ready and waiting to respond to any ping messages you send.