B2B Integration 10.4 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Doc Folder | Summary of Elements in this Folder | wm.tn.doc:validate
 
wm.tn.doc:validate
Invokes the document validation service associated with the specified document to validate the structure of the document.
Input Parameters
bizdoc
Object The document for which you want to validate the structure. The document must be an instance of com.wm.app.tn.doc.BizDocEnvelope.
flags
Object (optional) Flags that specify the pre-processing actions for the document. If specified, the service uses the validate? flag to determine whether to validate the structure of the document. The flags must be an instance of com.wm.app.tn.route.PreProcessingFlags.
Output Parameters
None.
Usage Notes
*Every TN document type is associated with a validation service. The wm.tn.doc:getEvents service looks up the appropriate validation service and executes it against the supplied document. All resulting validation errors are attached to the document and logged to the activity log in the Trading Networks database if the document is saved to the database. To retrieve the validation errors from the activity log, use wm.tn.doc:getEvents.
*If the document is an XML document, the XML validation service validates its content against the IS schema selected for use with documents of the corresponding BizDocType.
*If flags is non-null, the service uses the validate? flag to determine whether to validate the structure of the document. For the format of flags, see wm.tn.rec:PreProcessingFlags.

Copyright © 2016- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release