MIDAS Web Services Installation Guide (DataBaseAccess Service)
In these notes replace [MIDASBASE] with the base of your software installation (default is /MIDAS)
- Server
The file [MIDASBASE]/TclHttpd/Linux/TclHttpd-server is a shell script
which starts tclsh with the script [MIDASBASE]/TclHttpd/bin/httpd-Server.tcl. During startup the file
[MIDASBASE]/config/TclHttpd/[SystemName]/startup.tcl is searched for where
[SystemName] can be the result of
the command uname -n; localhost or omitted. This startup script loads the system specific services required.
The following would load the implementation of the DataBaseAccess Service.
package require DataBaseAccessServer
There are a number of configuration options. The following shows these with the default settings.
Setting DataBaseRoot [file join $env(MIDASBASE) DB]
namespace eval DataBaseAccess { ;# defines custom menu of root node names
variable rootNameList
set rootNameList [list EXPERIMENTS CURRENT_EXPERIMENT CURRENT_CONFIGURATION]
}
package require DataBaseAccessServer
- Httpd
From a Web Browser contact the URL http://[SystemName]:8015. This returns a page containing the WSDL file descriptions of the services available and a menu of available services.
The URL http://[SystemName]:8015/DataBaseAccess will directly enter the service.
V Pucknell; STFC; Daresbury Lab 9 July 2009