BEA Logo BEA XML Translator 2.0

  BEA Home  |  Events  |  Solutions  |  Partners  |  Products  |  Services  |  Download  |  Developer Center  |  WebSUPPORT

 

   XML Translator Documentation   |   XML Translator Plug-In Guide   |   Previous Topic   |   Next Topic   |   Contents   |   Index

Understanding the XML Translator Plug-In

 

This guide describes the functionality and operation of the XML Translator Plug-In. The following topics are discussed:

 


Understanding XML Translation

Data that is sent to, or received from, legacy applications is often platform-specific binary data that is in the native machine representation. Binary data is not self-describing, so in order to be understood by an application, the layout of this data (metadata) must be embedded within each application that uses the binary data.

XML is becoming the standard for exchanging information between applications because XML embeds a description of the data within the data stream, thus allowing applications to share data more easily. XML is easily parsed and can represent complex data structures. As a result, the coupling of applications no longer requires metadata to be embedded within each application.

When you translate binary to XML data, you convert structured binary data to an XML document so that the data can be accessed via standard XML parsing methods. You must create the metadata used to perform the conversion. The translation process converts each field of binary data to XML according to the metadata defined for each field of data. In the metadata you specify the name of the field, the data type, the size, and whether the field is always present or optional. It is this description of the binary data that is used to translate the binary data to XML. Figure 1-1 shows a sample of XML data translation.

Figure 1-1 XML Data Translation of: Tom;Jones;1345;19;


 

Applications developed on the WebLogic platform often use XML as the standard data format. If you want the data from your legacy system to be accessible to applications on the WebLogic platform, you may use XML Translator to translate it from binary to XML or from XML to binary. If you need the XML in a particular XML dialect for end use, you must transform it using an XML data mapping tool.

 


What is XML Translator?

XML Translator, a component of BEA WebLogic Integration, facilitates the integration of data from diverse enterprise applications by supporting data translations between binary formats from legacy systems and XML. XML Translator normalizes legacy data into XML so it may be directly consumed by XML applications, transformed into a specific XML grammar, or used directly to start workflows in WebLogic Process Integrator, another component of BEA WebLogic Integration. XML Translator supports non-XML to XML translation and vice versa and is made up of three primary components:

To perform a translation, you create a description of your binary data using the design-time component (Format Builder). This involves analyzing binary data so that its record layout is accurately reflected in the metadata you create in Format Builder. You then create a description of the input data in Format Builder and save this metadata as a Message Format Language (MFL) document. XML Translator includes importers that automatically create message format definitions from common sources of binary metadata, such as COBOL copybooks.

You can then use XML Translator's run-time component to translate instances of binary data to XML. Figure 1-2 shows the event flow for non-XML to XML data translation. A Plug-In to Process Integrator allows for easy access to configuring translations.

Figure 1-2 Event Flow for Non-XML to XML Translation Using XML Translator


 

The Design-Time Component

The design-time component is a Java application called Format Builder. Format Builder is used to create descriptions of binary data records. Format Builder allows you to describe the layout and hierarchy of the binary data so that it can be translated to or from XML. The description you create in Format Builder is saved in an XML grammar called Message Format Language (MFL). MFL documents are metadata used by the run-time component of XML Translator and the plug-in to Process Integrator to translate an instance of a binary data record to an instance of an XML document (or vice-versa). Format Builder will also create a DTD or XML Schema document that describes the XML document created from a translation.

For more information on the design-time component, refer to the BEA WebLogic XML/Non-XML Translator User Guide.

The Run-Time Component

The run-time component of XML Translator is a Java class with various methods used to translate data between binary and XML formats. This Java class can be deployed in an EJB using BEA WebLogic Server, invoked as a business operation from a workflow in BEA WebLogic Process Integrator, or integrated into any Java application.

For more information on the run-time component, refer to the BEA WebLogic XML/Non-XML Translator User Guide.

Run-Time Plug-In to WebLogic Process Integrator

BEA XML Translator Plug-In for WebLogic Process Integrator provides for an exchange of information between applications by supporting data translations between binary formats from legacy systems and XML. The XML Translator Plug-In provides Process Integrator actions that allow you to access XML to Binary and Binary to XML translations.

In addition to this data translation capability, the XML Translator Plug-In provides event data processing in binary format, in-memory caching of MFL documents and translation object pooling to boost performance, a BinaryData variable type to edit and display binary data, and execution within a WebLogic Server clustered environment.

The following illustration describes the relationship between XML Translator and Process Integrator.

 


Using the Repository

The XML Translator repository feature provides a centralized document storage mechanism that supports the following four document types:

The Repository provides access to these document types and allows you to share them between XML Translator, Process Integrator, Application Integration, and Collaborate. The repository also includes a batch import utility that allows previously constructed MFL, DTD, XSD, and XSLT documents to be easily migrated into the repository.

 


XML Translator Plug-In Prerequisites

Before using the XML Translator Plug-In, you should perform the following tasks:

 

back to top previous page next page