B2B Integration : 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- 2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback