overview what this lab is about what you will do in this lab · 2019-09-26 · overview what this...

Post on 28-Mar-2020

9 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Overview

What this lab is about

In this Lab you will know, how to Transform CSV Data to XML using DFDL .DFDL Stands for DATA Format Description Language is a modeling language fordescribing general text and binary data.DFDL is a new feature in WMB8.0 which will beused for modeling text and binary data,DFDL Parser is alternate for MRM inWMB8.0.Supports Language structures such as COBOL, C and PL/1.Supports Industrystandards such as SWIFT, HL7, FIX, HIPAA, X12, EDIFACT.

What you will do in this lab

You will go through each step in the following sections. Each step might contain manysubsets

Key Steps are:

How to create a Library. How to create a message model. How to Test the Message Model by using Test Parse Model How to create a message flow to transform given input message

from CSV to XML. How to deploy the message flow.

Creating a Message Model by using DFDL Parser (CSV to XML)

Create a Library named “CSV_XML_LIB” Create a DFDL Schema File Named “CSV_XML_SCHEMAFILE” Create a Application named “CSV_XML_APP”

STEP 1:Create a Library,To create a Library go to File-->New-->Library

STEP 2:Specify the name of Library.

STEP 3:Right Click on CSV_XML_LIB Library & Select Message Model.

STEP 4:Select CSV text.

STEP 5:Select the option Create a DFDL schema file using this wizard to guide you.

STEP 6:Specify Application or Library Name & DFDL schema file name.Click on Next button.

STEP 7:Specify the Number of fields you need. Click on Finish button

STEP 8:DFDL schema editor opens. Rename the complex element according to your requirement.

STEP 9:Set the data-types to the elements.

STEP 10:Click on sequence which was under CUSTOMER_DETAILS element & in the right hand side verify the separator to be comma(,)

STEP 11:We can test the DFDL Schema File by clicking on Test Parse Model Option.

STEP 12: Select Content from a data file option. Click on browse button to select the input file.

STEP 13:Select the file from your file system.

STEP 14:Click on OK button.

STEP 15:Once you click on ok button,a pop up window appears asks you to open the DFDL Test perspective now. Click on yes button.

STEP 16:IF the input is correct the output is displayed

STEP 17:You can see the output as Tree View by clicking on Tree View option.

STEP 18:You can see the output as XML View by clicking on XML View option.

STEP 19:If you need use the dfdl schema file which was created earlier create an application. For creating an application go to File-->New-->Application.

STEP 20:Specify the name of the Application.

STEP 21:Select the existing library as a reference to the Application.

STEP 22:Create a message flow in the application. To create a message flow right clickon the application go to New-->Message Flow.

STEP 23:Specify the name of message flow & click on finish.

STEP 24:Drag & Drop the MQ INPUT,MAPPING & MQ OUTPUT Nodes from the palette. Specify Mqinput Name.

STEP 25:In the mq input select the message domain as DFDL:For binary or text messages with Data Format Description Language schema model.

STEP 26:Click on the browse option in Message & select the DFDL Schema & click on ok button.

STEP 27:Specify the output queue name.

STEP 28:Double click on the mapping node & click on next option.

STEP 29:Tick the CSV_XML_SCHEMAFILE under DFDL and XML Schema for both source &target side in the mapping node.

STEP 30:Select the Output Domain as XMLNSC.

STEP 31:Wire the CUSTOMER_DETAILS in the source side to CUSTOMER_DETAILSin target side.

STEP 32:Right click on the CSV_XML application & select Deploy option to deploy the application.

STEP 33:Open RHFUTILITY & specify Queue Manager & Queue Name.Click on Open File option & select the Input file & click on WRITE Option

STEP 34:Verify the output from output queue by using RFHUTILITY.

top related