MIDAS Web Services Installation Guide (Spectrum 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.
Two options are supported.
- The first is the case where the spectrum source is within a data acquisition system.
The following
would load the implementation of the Spectrum Service for this case.
package require SpectrumServer
-
Also define within the shell script used to launch the data acquisition system the environment variable MIDAS_MEMSAS_PORT by adding
MIDAS_MEMSAS_PORT=0
export MIDAS_MEMSAS_PORT
Also define the data acquisition systems by adding
namespace eval DataAcquisition {
variable ACQSERVERS; set ACQSERVERS [list Host1 Host2 .....]
}
into the Tcl script (/MIDAS/config/TclHttpd) used to launch the Httpd server within the data acquisition system (this may already be present).
- The second is the case where the spectrum source is local (disc based).
The following
would load the implementation of the Spectrum Service for this case.
package require DiscSasServer
- 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/Spectrum will directly enter the service.
V Pucknell; STFC; Daresbury Lab 25 May 2010