EDIFACT Integrator - Online Help
EDIFACT Integrator
Questions / Feedback?

Translate Method

Translates the specified data.

Syntax

[VB.NET]
Public Sub Translate()
[C#]
public void Translate();

Remarks

This method translates the specified data.

The component will convert to XML or EDI depending on the value of InputFormat. If InputFormat is set to ifEDIFACT the data will be converted from EDI to XML. If InputFormat is set to ifXML the data will be converted from XML to EDI.

When converting from EDI to XML optionally call LoadSchema before calling Translate so that additional information can be included in the XML. If a schema is specified the XML will include types and descriptions as element attributes which are useful for interpreting the XML.

EDI elements may optionally be renamed when creating XML. To define how an element is renamed add a renaming rule by calling AddRenamingRule.

After calling Translate the resulting output will contain the EDI or XML data. If the output data is XML the ExportXMLSchema method may be called to export a schema (.xsd) defining the structure of a valid XML document. XML documents which adhere to this document may be translated from XML to EDI.

Input and Output Properties

The component will determine the source and destination of the input and output based on which properties are set.

The order in which the input properties are checked is as follows:

When a valid source is found the search stops. The order in which the output properties are checked is as follows:

 
 
Copyright (c) 2018 /n software inc. - All rights reserved.
Build 1.0.6635.0