RosettaNet Module 7.1 SP2.October 2012 | Installing and Using webMethods RosettaNet Module | Installing and Using RosettaNet Module | Processing Large Business Documents | Configurations to Process Large Business Documents | Step 6: Customize the Validation Service
 
Step 6: Customize the Validation Service
You must create a new validation service to handle large business documents. Perform the following procedure to customize an existing validation service.
Important:
For large documents, you must specify the ValidateService in the TPA. Otherwise, the PIP is not validated.
Note:
If your process model handles both large and small business documents, your validation service must also handle both large and small business documents.
*To create a validation service
1. In Designer, retrieve the BizDocEnvelope from the Trading Networks database.
2. For the non-repeating parts, convert the XML strings to IData objects, and validate.
3. For the repeating parts, convert the XML strings to IData objects, and validate.
If either step 2 or step 3 returns a value of false, the validation service has failed.
4. In the TPA for the PIP, enter this validation service name as the ValidateService parameter.
Note:RosettaNet Module invokes the validation service while validating an inbound business document. For an outbound business document, RosettaNet Module only invokes the validation service if the value for the ValidateOutput parameter is yes.
To see the working example, open the sample PIP 3D8 TPA in My webMethods. The value for ValidationService is set as wm.b2b.rn.largeDocSample.validation:validatePip3D8.