CSS Validator Web Service API
SOAP 1.2 validation interface documentation

Table of Contents

Validation Request Format

The documentation on how to create a custom request to the CSS validation service is available, with a table of all existing parameters and their values, in the User Manual.

SOAP format description

When called with parameter output=soap12, the validator will switch to its SOAP 1.2 interface. Below is a sample response, as well as a description of the most important elements of the response.

A WSDL 2 description file is lso available for this service.

sample SOAP 1.2 validation request

It is a simple HTTP GET call to a URI like:


sample SOAP 1.2 validation response

A SOAP response for the validation of a document (invalid) will look like this:

<?xml version='1.0' encoding="utf-8"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
        <m:errors xml:lang="en">
        <m:warnings xml:lang="en">
              <m:message>Properties for other media might not work for usermedium</m:message>
              <m:message>Properties for other media might not work for usermedium</m:message>
              <m:message>Properties for other media might not work for usermedium</m:message>
              <m:message>Properties for other media might not work for usermedium</m:message>

SOAP1.2 response format reference

element description
cssvalidationresponse The main element of the validation response. Encloses all other information about the validation results.
uri the address of the document validated. In EARL terms, this is the TestSubject.
checkedby Location of the service which provided the validation result. In EARL terms, this is the Assertor.
csslevel The CSS level (or profile) in use during the validation.
date The actual date of the validation
validity Whether or not the document validated passed or not formal validation (boolean)
errors Encapsulates all data about errors encountered through the validation process
errorcount a child of errors, counts the number of errors listed
errorlist a child of errors, contains the list of errors (surprise!)
error a child of errorlist, contains the information on a single validation error.

Note: warnings, warningcount, warninglist and warning are similar to, respectively, errors, errorcount, errorlist and error.

SOAP1.2 atomic message (error or warning) format reference

As seen as the example above, the children of the error element, but also the warning element are line, level and message, defined below:

element description
line Within the source code of the validated document, refers to the line where the error was detected.
level The level of the warning, only the ones whose level is under or equal to the value specified in the request will be displayed.
message The actual error or warning message