IBM BPM, V8.0.1, All platforms > Programming IBM BPM > Business objects programming > Programming using business object services

XML document validation

XML documents and business objects can be validated using the validation service.

In addition, other services require certain minimum standards or they throw a runtime exception. One of these is BOXMLSerializer.

You can use the BOXMLSerializer to validate XML documents before they are processed by a service request. The BOXMLSerializer validates the structure of XML documents to determine if any of the following types of errors are present:

When an error is discovered by the BOXMLSerializer, an exception will be thrown with problem details.

The validation can be performed for import, export, or both for the XML documents related to the following services:

For the HTTP, JAXRPC, and JAX-WS services, the BOXMLSerializer will generate exceptions in the following manner:

For the JMS and MQ messaging services, the exceptions are generated in the following manner:

You can view the logs for any messages generated by an XML validation exception. The following examples are messages generated by improper XML coding that was validated by the BOXMLSerializer

For more information about validation services, see the BOInstanceValidator interface in the Generated API and SPI documentation in the Reference section.

Programming using business object services