Validation

From Friend2Friend Wiki

Jump to: navigation, search

Validation is the use of an XML Schema to check whether an XML document is of a particular type.

Relevance to F2F

All validation in F2F is done using XSD. By default, the input and output of core services and custom services are automatically validated. If invalid, an exception is created. This is helpful for debugging, but can be suppressed by the module definition file if desired. e.g. if the service may be designed to accept any input, or (more likely) to create any XML as output, or input/output might be subject to restrictions too complex to express with XSD.