webMethods step by step flat file to xml
Feb 05, 2012 14:58 0 Comments Development Sashi

 

 

Task: Flat to XML

OS: WindowsOS

Platform: webMethods 6.1


 

First create a dictonary

For this go to

 

alt


 

goto and select

alt

 

 give a name for the dictoanry and then click finish 

goto record definition and we can see them as follows

we get the picture as shown below

alt

 

 

now goto new record definition and we get that as follows

alt

 

alt

 

 now give the name as

 alt

 

now goto  new

alt

 

 

now goto new and select then we will get a screen as shown below

alt

 

 

then select field definition and then we get

alt

 

 

then select nth definition in the place where the cursor is pointed

alt

 

 

give the name u want to create and then click on as shown in the figure

alt

 

click on finish

then the dictonary is created

thebn create a schema for this we need to  select

alt

 

 

give the name of the schema and we get the screen as follows

alt

 

then slect delimiter and then give ; and * as shown in the figure and we select nth field in as shown in the figure

 

then goto set and then we get the figure as shown below

alt

 

we get the place where the dictionary has been saved select the dictionary and the dictionary is set

 

then goto flatfilestructue and we get then click on the as shown below

alt

 

then we get schemadt for the concerned schema

 then create an xml file as seen below

 

now take a document

 

and then take the document list and then take the string and then we get the screen as shown below

 alt

 

then take a flow

and we get the flow as follows

alt

 

now take getfile from wmpublic

pub.file:getfile

then goto pipeline and we get the screen as follows

 

alt

 

the filename is filename as the filename we have to take as the input

alt

 

then select the loadas

alt

 

to select this goto

wmflatfile.pub.flatfile:converttovalues

 

 

then we get the mapping in the pipeline as follows 

alt

 

copy the schema and pasteit in ffschema

copy schemadt in the same and write it in the and we have to map it ion the following

alt

 

then take a map and we get it as

 

copy xml and paste it in the right pipelineout and we get it as follows

alt

 

the mapping is done as follows

 

then take the wmpublic

xml

documenttoxmlstring

 

map from xmlschema to the document as shown in the figure

alt

 

 

next gotowrite to file and we get it as follows

alt

 

we can see the navigation to get the writeto file

map from xmldata to filecontent

filename

give filename as the destination of the file we want to save the file for output

overwriteflag select it and make it overwrite

run

 

finish 

 

Prev Next
About the Author
Topic Replies (0)
Leave a Reply
Guest User

You might also like

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect