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:
- Invalid XML documents, such as those that are missing certain element tags.
- Not well-formed XML documents, such as those that contain missing closing tags.
- Documents containing parsing errors, such as errors in entity declaration.
The validation can be performed for import and/or export of XML documents
for the following services:
- HTTP
- JAXRPC web services
- JAX-WS web services
- JMS services
- MQ services
For the HTTP, JAXRPC, and JAX-WS services, the BOXMLSerializer will
generate exceptions in the following manner:
- Imports –
- The SCA component invokes the service.
- The service invokes a destination URL.
- The destination URL responds with an invalid XML exception.
- The service fails with a runtime exception and message.
- Exports –
- The service client invokes the service export.
- The service client sends an invalid XML
- The export fails for the service and generates an exception and message.
For the JMS and MQ messaging services, the exceptions are generated in
the following manner:
- Imports –
- The import invokes the JMS or MQ service.
- The service returns a response.
- The service returns an invalid XML exception.
- The import fails and generates a message.
- Exports –
- The MQ or JMS client invokes an export.
- The client sends invalid XML.
- The export fails and generates an exception and message.
You can view the logs for any messages generated by an
XML validation exception.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.