webMethods XML to EDI scenario
Pre requisites:
EDI dictionary (Empty) EDI Schema DT (Created through sef parse) EDI schema XML Document (XML Document type)
ref : XML file Sef parse [ for populating Edi dictionary with data and for creating EDI schema DT] (Wm . EDI . b2bn. Edi .Sef parse)
1) Get the xml content into IS using the service
pub . file . getfile
2) Use the service to transform xml string to xml node
pub . XML . XML String to XML Node Map:
bytes â file data
3) Transform xml node to XML DT
pub . XML .XML Node to document Map:
node - node
pipeline out â XML Document ref.
4) Use MAP step to map XML DT to EDI DT
XML Doc ref â EDI Schema DT Ref
5) use the service to transfom EDI DT to string
Wm . b2b . Edi . convert to string
Map:
Edi schema DT - flat file value
Flat file schema â Edi schema path
6) Map the resultant output to a destination file
Sample . Io . test .write to file
