webMethods step by step XML to Flat file

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

Leave a comment