XML Validation Service
The XML Validation service validates XML documents in process data. It can validate against a schema or a DTD, or it can verify that the document is well-formed.
The following table provides an overview of the XML Validation service:
Category | Description |
---|---|
System name | XMLValidator WellFormed |
Graphical Process Modeler (GPM) categories | All Services, Translation |
Description | Validates XML documents in process data. It can validate against a schema or a DTD, or verify that the document is well-formed. |
Business usage | Used within business processes to perform validation of an XML document passed to the business process or generated within the business process. |
Usage example | You have a business process that performs the following:
|
Preconfigured? | Yes |
Requires third-party files? | No |
Platform availability | All supported Sterling B2B Integrator platforms |
Related services | No |
Application requirements | If the XML document will be verified using a DTD
or schema, then you must specify one of the following in the XML document:
|
Initiates business processes? | No |
Invocation | Runs as part of a business process. |
Business process context considerations | Uses the primary document and can validate documents in process data. |
Returned status values | Returned status values:
|
Restrictions | No |
Persistence level | None |
Testing considerations | None |
Requirements
The DTDs and schemas are checked in Sterling B2B Integrator. If you want to validate using a schema or DTD, you must specify either the location and name of the schema or DTD, or the actual DTD, in the XML document (which is the primary document of the BPML).
How the XML Validation Service Works
If you have a business process that uses the translation service to create XML, you can use the XML Validation service to check the output of that service to verify its credibility before operating on it.
Business Process Example
The illustration shows an example business process that uses the XML Validation service:
<process name=”XMLVal_WellFrmd">
<sequence>
<operation name="Validate">
<participant name="XMLValidator"/>
<output message="outputMessage">
<assign to="." from="*"></assign>
<assign to ="xml_input_validation">WELLFORMED</assign>
</output>
<input message="inputMessage">
<assign to="." from="*"></assign>
</input>
</operation>
</sequence>
</process>
Implementing the XML Validation Service
- Activate your license for the XML Validation service. See An Overview of Implementing Services.
- Create an XML Validation service configuration. See Creating a Service Configuration.
- Configure the XML Validation service. See Configuring the XML Validation Service.
- Check in any DTDs or schemas that will be used to validate the XML documents.
- Use the XML Validation service in a business process.
Configuring the XML Validation Service
To configure the XML Validation service, you must specify field settings in Sterling B2B Integrator and using BPML. See Creating a Service Configuration.
Sterling B2B Integrator Configuration
The following table describes the fields used to configure the XML Validation service in Sterling B2B Integrator:
Field | Description |
---|---|
Name | Unique and meaningful name for the service configuration. Required. |
Description | Meaningful description for the service configuration, for reference purposes. Required. |
Select a Group | Select one of the options:
Note: See Using Service Groups.
|
Input Validation(xml_input_validation) | Specifies the method used for validation of the
input XML file. Required. Valid values are:
Note: This parameter can be overwritten using BPML.
|
BPML Configuration
The following table describes the fields used to configure the XML Validation service using BPML:
Field | Description |
---|---|
xml_input_validation | Specifies the method used for validation of the
input XML file. Required. Valid values are:
Note: This parameter is set in the Sterling B2B Integrator configuration,
but can be overwritten using BPML.
|
xml_input_from | Specifies the location of the XML to validate.
Optional. Valid values:
|
input_pd_xpath | Identifies the XPath location of the XML to validate. Required if xml_input_from is set to Procdata. |