Trading Networks 10.3 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Doc Folder | Summary of Elements in this Folder | wm.tn.doc.xml:recordToBizdoc
 
wm.tn.doc.xml:recordToBizdoc
Transforms an IS document (IData object) into an XML document and sends the resulting XML document into the document recognition engine to translate the XML document into a business document.
Input Parameters
boundNode
Document A IS document (IData object) containing the data to translate to a business document.
doctypeIdentifier
String (optional) Document type identifier for the resulting document. To determine the document type identifier of a document type, invoke the wm.tn.doctype:list service. The wm.tn.doctype:list service lists the names and IDs of all your TN document types.
rootTag
String (optional) Root tag for the resulting XML document.
htmlEncode
String (optional) Whether you want the leaf (String) data in the resulting XML document to be HTML-encoded (e.g., “<" replaced with “&lt”). Valid values are:
*true - HTML-encode all leaf (String) data in the XML document.
*false - Default. Do not HTML-encode leaf (String) data in the XML document.
recordName
String (optional) The fully-qualified name of the IS document type you want the service to use to guide the transformation of the XML document.
generateRequiredTags
String (optional) Indicates whether to create empty XML tags for all required elements of the specified IS document type (recordName) if there is no data available to complete them. Valid values are:
*true - Create empty XML tags for required elements for which there is no data.
*false- Default. Omit XML tags for required tags for which there is no data.
TN_parms
Document (optional) An IS document (IData object) that holds “hints” that Trading Networks uses when performing document recognition for a flat file document. For details on providing recognition hints, see the information about document gateway services in webMethods Trading Networks Administrator’s Guide.
Output Parameters
bizdoc
Document The resulting document formatted as an IS document (IData object). For the structure of bizdocs, see wm.tn.rec:BizDocEnvelope.
TN_parms
Document (optional) An IS document (IData object) that holds "hints" that Trading Networks uses when performing document recognition for a flat file document. See information about document gateway services in webMethods Trading Networks Administrator’s Guide for details on providing recognition hints.
Usage Notes
*If you are invoking this service from a Java program, in addition to returning bizdoc as an IS document (IData object), the service returns bizdoc as an instance of com.wm.app.tn.doc.BizDocEnvelope.
*This service performs a function analogous to pub.xml:documentToXMLString. For more information about this service, see webMethods Integration Server Built-In Services Reference.
*This service is not applicable for large documents.