Service Status Checker : Real Time Testing Mode
Requests can be made to the SSC web service and it will perform real time tests on each service and immediately
return the results. This document will describe the real time testing mode of the SSC service.
Request URL
The SSC web service is a HTTP based service. The web service is located at the following location:
http://registry.fgdc.gov/statuschecker/services/rest/index.php?

Figure 1. Any service can be tested by the SSC through a real time XML request.
All tests are immediately tested with results returned to the requestor.
Real Time Testing Requests
Real time testing requests can be constructed through HTTP GET or POST requests. The following parameters are used to
construct testing requests to the SSC web service.
HTTP GET:
Requests through HTTP GET can be easily constructed through URLs that can work in your browser, through the command line or within your code. All GET requests start with the hostname and base path of the SSC service followed by a question mark. The remainder of the URL is followed by the actual request parameters which take the form of argument=value syntax and are separated by the ampersand (&).
http://registry.fgdc.gov/statuschecker/services/rest/index.php?url=<service_url>&type=<service_type>&formattype=<format>&requesttype=<request_type>
HTTP POST:
Requests through an XML POST method can be used to construct the SSC web service request. Using the POST method allows multiple requests to be sent at one time rather than making individual GET requests for each service. The tags are repeated for each service to be tested.
The same request parameters that are used in the HTTP GET are required in the POST XML request but they must be provided through an XML document. The schema document for this service request is located at: http:/registry.fgdc.gov/statuschecker/services/rest/requestSchema.xsd
| REQUEST PARAMETER |
DESCRIPTION |
REQUIRED |
DEFAULT VALUE |
| type |
Define the type of service to be tested. This parameter will designate what validation and specific tests are performed.
The following types are currently available:
- image: Will test the service as an ESRI ArcIMS Service.
- waf: Will test the service as an Web Accessible Folder (WAF).
- wfs: Will test the service as an OGC Web Feature Service (WFS).
- wms: Will test the service as an OGC Web Map Service (WMS).
- z3950: Will test the service as an Z39.50 Service.
|
Required |
- |
| url |
Define the URL of the service to be tested. This URL will be validated and tested according to the above "type" of service.
- image: The "url" parameter needs to be provided as the base URL along with the servicename.
URL Format: <url>?ServiceName=<serviceName>
Example URL: http://gis1.oit.ohio.gov?ServiceName=naip_2004
- waf: The "url" parameter needs to be provided as a Web Accessible Folder (WAF) URL.
- wfs: The "url" parameter needs to be provided as a getCapabilities or getFeature URL.
- wms: The "url" parameter needs to be provided as a getCapabilities or getMap URL.
- z3950: The "url" parameter needs to be provided as the base URL along with the port and database name.
URL Format: z3950s://<hostName>:<port>/<databaseName>
Example URL: z3950s://edclxs25.cr.usgs.gov:5210/adds
|
Required |
- |
| requesttype |
Define if a full or brief report is returned.
- full: Returns all summary and specific test information.
- brief: Returns only the summary information.
|
Optional |
full |
| formattype |
Define the output format of the web service response.
- xml: XML is returned
- html: HTML is returned after the XML is styled through an XSL transformation
|
Optional |
xml |
Real Time Testing Response Fields
The SSC web service returns an XML document describing the validation, scores and test results performed by the SSC system.
The schema document for this service response is located at:
http://registry.fgdc.gov/statuschecker/services/rest/responseSchema.xsd
The following information is returned from the SSC web service:
| RESPONSE FIELD |
DESCRIPTION |
| response |
Contains one or many service elements. |
| service |
Contains all the service testing results from the SSC web service for that specific service. It has the following attributes:
- type: Type of service tested
- date: Date and time that the tests were performed
|
| summary |
Contains a summary of the service tested, the validation of the service URL and the scoring results.
|
| providedURL |
Contains information about the provided service URL and how it was tested to be valid. It has the following attributes:
- type: Type of URL provided. E.g. WMS requires a getMap or getCapabilities URL and ArcIMS requires the hostname+serviceName
- validity: Results on a validation test of the service URL. [ 1=Successful validation test / 0=Invalid validation test ]
|
| scoredTest |
Contains the scoring or health information of the service. It has the following attributes:
- type: Type of service test that will be used to generate a score for the overall service.
|
| performance |
Contains the scores or health information of the service. These scores are based upon the specific test indicated above
in the scoreTest value. It has the following attributes:
- currentSpeed: Time in seconds between 0-45 Seconds that the service was able to respond to the testing request.
[ -99.99 Service was not able to be tested ]
- currentScore: Service is provided a score between 0-100 based upon the ability to return results along with the
speed of the service. [ -99.99= Service was not able to be tested and scored ]
|
| test |
Contains the individual test results for each test performed on this service. Contains the following attributes:
- type: Defines the current test that was performed. For example, a WMS services can contain the following test
results depending on which tests were performed: httpServer, getCapabilities, generatedGetCapabilties, getMap, generatedGetMap.
- startTime: Time the test was started
- endTime: Time the test ended
|
| input |
Contains information related to the inputs that were provided to the testing process. Some of the most common inputs include:
- URL: Defines the provided URL that was used to perform the current test
|
| output |
Contains information related to the outputs or results returned from the testing process. Some of the most common outputs include:
- success: Reports the result of the current test. [ 1= success / 0= failure / -99.99=not tested ]
- error: Reports any errors returned by the current test
|
Sample Service Requests and Responses
Select one of the below service types to view service specific requests and responses.
ArcIMS Image
Post Request
XML Request:
| <request xmlns="http://registry.gsdi.org/statuschecker/services/rest/"> |
| <formattype>xml</formattype> |
| <requesttype>full</requesttype> |
| <service> |
| <url> http://gis1.oit.ohio.gov?ServiceName=naip_2006</url> |
| <type>image</type> |
| </service> |
| </request> |
Get Request
XML Response
| <?xml version="1.0"?> |
| <response xmlns="http://registry.gsdi.org/statuschecker/services/rest/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://registry.gsdi.org/statuschecker/services/rest/responseSchema.xsd"> |
| <service type="image" date="2009-11-12 11:36:38"> |
| <summary> |
| <providedURL type="ArcIMSImage" validity="1">http://gis1.oit.ohio.gov?ServiceName=naip_2006</providedURL> |
| <scoredTest type="getImage"> |
| <performance type="currentSpeed">0.195937156677</performance> |
| <performance type="currentScore">99.85</performance> |
| </scoredTest> |
| </summary> |
| <test type="httpServer" startTime="11:36:36" endTime="11:36:37"> |
| <input type="URL">gis1.oit.ohio.gov</input> |
| <output type="success">1</output> |
| </test> |
| <test type="getServiceInfo" startTime="11:36:37" endTime="11:36:37"> |
| <input type="URL">http://gis1.oit.ohio.gov/servlet/com.esri.esrimap.Esrimap?ServiceName=naip_2006</input> |
| <output type="success">1</output>
|
| </test> |
| <test type="getImage" startTime="11:36:38" endTime="11:36:38"> |
| <input type="URL">http://gis1.oit.ohio.gov/output/naip_2006_gisprodapp01777643243.jpg</input> |
| <input type="extent">minx=260301 miny=4270327 maxx=305803 maxy=4333777</input> |
| <output type="success">1</output> |
| </test> |
| </service> |
| </response> |
WAF
Post Request
XML Request:
| <request xmlns="http://registry.gsdi.org/statuschecker/services/rest/"> |
| <formattype>xml</formattype> |
| <requesttype>full</requesttype> |
| <service> |
| <url>http://www.geosur.info/WAF/</url> |
| <type>waf</type> |
| </service> |
| </request> |
Get Request
XML Response
| <?xml version="1.0"?> |
| <response xmlns="http://registry.gsdi.org/statuschecker/services/rest/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://registry.gsdi.org/statuschecker/services/rest/responseSchema.xsd"> |
| <service type="waf" date="2010-01-14 9:00:31"> |
| <summary> |
| <providedURL type="waf" validity="1">http://www.geosur.info/WAF</providedURL> |
| <scoredTest type="validateWAFContents"> |
| <performance type="currentSpeed">0.00183486938477</performance> |
| <performance type="currentScore">100.00</performance> |
| </scoredTest> |
| </summary> |
| <test type="httpServer" startTime="9:00:31" endTime="9:00:31"> |
| <input type="URL">http://www.geosur.info</input> |
| <output type="success">1</output> |
| </test> |
| <test type="validateWAFPath" startTime="9:00:31" endTime="9:00:31"> |
| <input type="URL">http://www.geosur.info/WAF/</input> |
| <output type="success">1</output> |
| </test> |
| <test type="validateWAFContents" startTime="9:00:31" endTime="9:00:31"> |
| <input type="URL">http://www.geosur.info/WAF/aeropuertos_mtdspa.xml</input> |
| <output type="success">1</output> |
| </test> |
| </service> |
| </response> |
WFS
Post Request
XML Request:
| <request xmlns="http://registry.gsdi.org/statuschecker/services/rest/"> |
| <formattype>xml</formattype> |
| <requesttype>full</requesttype> |
| <service> |
| <url>http://geodata.epa.gov/wfsconnector/com.esri.wfs.Esrimap/EPA_ER_Quads?request=getcapabilities&service=wfs</url> |
| <type>wfs</type> |
| </service> |
| </request> |
Get Request
XML Response
| <?xml version="1.0"?> |
| <response xmlns="http://registry.gsdi.org/statuschecker/services/rest/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://registry.gsdi.org/statuschecker/services/rest/responseSchema.xsd"> |
| <service type="wfs" date="2009-11-12 11:36:38"> |
| <summary> |
| <providedURL type="getCapabilities" validity="1">http://geodata.epa.gov/wfsconnector/com.esri.wfs.Esrimap/EPA_ER_Quads?request=getcapabilities&service=wfs</providedURL> |
| <scoredTest type="getFeature"> |
| <performance type="currentSpeed">0.195937156677</performance> |
| <performance type="currentScore">99.85</performance> |
| </scoredTest> |
| </summary> |
| <test type="httpServer" startTime="11:36:36" endTime="11:36:37"> |
| <input type="URL">http://geodata.epa.gov</input> |
| <output type="success">1</output> |
| </test> |
| <test type="getCapabilities" startTime="11:36:37" endTime="11:36:37"> |
| <input type="URL">http://geodata.epa.gov/wfsconnector/com.esri.wfs.Esrimap/EPA_ER_Quads?request=getcapabilities&service=wfs</input> |
| <output type="success">1</output> |
| </test> |
| <test type="getFeature" startTime="11:36:38" endTime="11:36:38"> |
| <input type="URL">http://geodata.epa.gov:80/wfsconnector/com.esri.wfs.Esrimap/EPA_ER_QUADS?Request=GetFeature&Service=WFS&Version=1.1.0&MaxFeatures=5&Typename=EPA_6K_QUADS-6k</input> |
| <output type="success">1</output> |
| </test> |
| </service> |
| </response> |
WMS
Post Request
XML Request:
| <request xmlns="http://registry.gsdi.org/statuschecker/services/rest/"> |
| <formattype>xml</formattype> |
| <requesttype>full</requesttype> |
| <service> |
| <url>http://map.ngdc.noaa.gov/wmsconnector/com.esri.wms.Esrimap/nos_hydro?request=getcapabilities&service=wms</url> |
| <type>wms</type> |
| </service> |
| </request> |
Get Request
XML Response
| <?xml version="1.0"?> |
| <response xmlns="http://registry.gsdi.org/statuschecker/services/rest/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://registry.gsdi.org/statuschecker/services/rest/responseSchema.xsd"> |
| <service type="wms" date="2009-11-12 11:36:38"> |
| <summary> |
| <providedURL type="getCapabilities" validity="1">http://map.ngdc.noaa.gov/wmsconnector/com.esri.wms.Esrimap/nos_hydro?request=getcapabilities&Service=wms&version=1.1.1</providedURL> |
| <scoredTest type="getMap"> |
| <performance type="currentSpeed">0.195937156677</performance> |
| <performance type="currentScore">99.85</performance> |
| </scoredTest> |
| </summary> |
| <test type="httpServer" startTime="11:36:36" endTime="11:36:37"> |
| <input type="URL">http://map.ngdc.noaa.gov</input> |
| <output type="success">1</output> |
| </test> |
| <test type="getCapabilities" startTime="11:36:37" endTime="11:36:37"> |
| <input type="URL">http://map.ngdc.noaa.gov/wmsconnector/com.esri.wms.Esrimap/nos_hydro?request=getcapabilities&Service=wms&version=1.1.1</input> |
| <output type="success">1</output> |
| </test> |
| <test type="getMap" startTime="11:36:38" endTime="11:36:38"> |
| <input type="URL">http://map.ngdc.noaa.gov:80/wmsconnector/com.esri.wms.Esrimap/nos_hydro?VERSION=1.1.1&REQUEST=GetMap&LAYERS=35&SRS=EPSG:4326&BBOX=-180,-89.899243489,180,89.8992434051&WIDTH=250&HEIGHT=250&FORMAT=image/png&STYLES=&</input> |
| <output type="success">1</output> |
| </test> |
| </service> |
| </response> |
Z39.50
Post Request
XML Request:
| <request xmlns="http://registry.gsdi.org/statuschecker/services/rest/"> |
| <formattype>xml</formattype> |
| <requesttype>full</requesttype> |
| <service> |
| <url>z3950s://edclxs25.cr.usgs.gov:5210/adds</url> |
| <type>z3950</type> |
| </service> |
| </request> |
Get Request
XML Response
| <?xml version="1.0"?> |
| <response xmlns="http://registry.gsdi.org/statuschecker/services/rest/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://registry.gsdi.org/statuschecker/services/rest/responseSchema.xsd"> |
| <service type="z3950" date="2009-11-12 11:36:38"> |
| <summary> |
| <providedURL type="z3950" validity="1">z3950s://edclxs25.cr.usgs.gov:5210/adds</providedURL> |
| <scoredTest type="searchSpatial"> |
| <performance type="currentSpeed">0.195937156677</performance> |
| <performance type="currentScore">99.85</performance> |
| </scoredTest> |
| </summary> |
| <test type="testZ3950Server" startTime="11:36:36" endTime="11:36:37"> |
| <input type="URL">z3950s://edclxs25.cr.usgs.gov:5210/adds</input> |
| <output type="success">1</output> |
| </test> |
| <test type="searchText" startTime="11:36:37" endTime="11:36:37"> |
| <input type="URL">edclxs25.cr.usgs.gov:5210/adds</input> |
| <input type="query">CGADMN1</input> |
| <output type="success">1</output> |
| <output type="recordsReturned">1</output> |
| </test> |
| <test type="searchSpatial" startTime="11:36:37" endTime="11:36:37"> |
| <input type="URL">edclxs25.cr.usgs.gov:5210/adds</input> |
| <input type="coordinates">90 -180 -90 180</input> |
| <output type="success">1</output> |
| <output type="recordsReturned">135</output> |
| </test> |
| </service> |
| </response> |
Additional examples along with a sample post request form can be found on the web service form.