webMethods step by step XML to Flat file
Feb 11, 2012 20:49 1 Comments Development Neelima

 

Task: XML to Flat file

OS: WindowsOS

Platform: webMethods 6.1

 

First create a dictionary for the flat file,

 

alt

 

then create xml document.

 

alt

 

create flat file schema with the dictionary.

 

alt

 

from the flat file schema create a schemaDT by clicking on the SET properties and give the dictionary path.

 

alt

 

In the main flow service put the following service.

1.pub.file:getFile. 

In this give the xml file name, load as –bytes.

 

alt

 

put pub.xml.xmlStringToXMLNode

 

alt

 

 

put pub.xml.XMLnodeToDocument in that map the document with the reference xmldocument.

 

alt

 

 

put the Map flow step and map the xmldocument elements with the schemaDT elements.

 

alt

 

 

put pub.flatfile:convertToString in that map the schemaDT file to the document and give the schema path.

 

alt

 

 

put sample.IO.test:writeToFile, map the string to filecontent and give the filename and overwriteFlag and overwrite.

 

alt

 

 

 

 

 

Prev Next
About the Author
Topic Replies (1)
  1. 1
    idnkx user

    huny

    Hi i am trying to use list files service to get the files. In directory folder i have mentioned the directory but it gives me error of path is not allowed to read. I have added the path in fileAccessControl configuration file. but its returning same error.

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