35
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 for describing general text and binary data.DFDL is a new feature in WMB8.0 which will be used for modeling text and binary data,DFDL Parser is alternate for MRM in WMB8.0.Supports Language structures such as COBOL, C and PL/1.Supports Industry standards 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 many subsets 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”

Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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”

Page 2: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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

Page 3: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

STEP 2:Specify the name of Library.

Page 4: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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

Page 5: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

STEP 4:Select CSV text.

Page 6: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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

Page 7: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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

Page 8: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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

Page 9: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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

Page 10: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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

Page 11: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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

Page 12: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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

Page 13: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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

Page 14: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

STEP 13:Select the file from your file system.

Page 15: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

STEP 14:Click on OK button.

Page 16: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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.

Page 17: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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

Page 18: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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

Page 19: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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

Page 20: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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.

Page 21: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

STEP 20:Specify the name of the Application.

Page 22: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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

Page 23: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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

Page 24: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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

Page 25: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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

Page 26: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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

Page 27: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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

Page 28: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

STEP 27:Specify the output queue name.

Page 29: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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

Page 30: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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

Page 31: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

STEP 30:Select the Output Domain as XMLNSC.

Page 32: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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

Page 33: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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

Page 34: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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

Page 35: Overview What this lab is about What you will do in this lab · 2019-09-26 · Overview What this lab is about In this Lab you will know, how to Transform CSV Data to XML using DFDL

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