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,




then create xml document.




create flat file schema with the dictionary.




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




In the main flow service put the following service.


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




put pub.xml.xmlStringToXMLNode





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





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





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





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








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


    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