User manual
Sensorsoft Alert User Manual
Appendix F – Using XML Output to Move
Data to other Applications
Accessing the XML page
This section describes how to use the XML output capability of Sensorsoft Alert to move live data to other
software applications.
To view the XML page, login to Alert’s web interface as ruser or admin. From the Monitor List page,
click the hyperlink View in XML at the top right corner. This will open a new web browser window
containing the XML page.
An XML schema (XSD) page is also available. The XML schema defines the XML’s hierarchy and data
types. The schema file is used by automated readers to validate the XML output. Once you are logged into
web interface you can access the XML schema (XSD) page, using the following URL:
http://<AlertApplianceIPAddress>/goform/main.xsd
To access the XML page from another software application, it will need to do the following:
1. Send the following HTTP Get request to Alert’s web server port:
GET /goform/CheckLogin?login=ruser&password=<password> HTTP/1.1
Replace the above <password> string with the Alert appliance’s ruser password.
2. Alert’s web server will then respond with the following headers:
HTTP/1.0 302 Redirect
Server: GoAhead-Webs
Date: Mon Mar 27 10:52:22 2006
Pragma: no-cache
Cache-Control: no-cache
Content-Type: text/html
Location: http://alertIP/read/main.asp
Set-Cookie: sessionId=<SessionIDValue>; path=/
3. Your application is now logged in. In the headers above, <SessionIDValue> is the sessionID cookie
passed back from the web server. Your application must record the <SessionIDValue> string in its
memory. The next step will tell you what to do with this recorded value.
4. To request the XML page, send the following HTTP GET request:
GET /goform/main.xml HTTP/1.1
Cookie: sessionId=<SessionIDValue>
Replace the above <SessionIDValue> string with the <SessionIDValue> that your application has
recorded from Alert’s last response. The web server in response will then send the XML page to your
application.
86