Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Processing Flat Files | Sending and Receiving Flat Files | Sample Flow Services for Working with XML Files | Retrieving Namespace Data to Write to an XML File
 
Retrieving Namespace Data to Write to an XML File
The following shows a sample flow service that retrieves data from the Integration Server namespace that can be written to an XML file.
Sample code for retrieving namespace data that can be written to an XML file
Flow Operation
Description
1
Invoke the appropriate service to retrieve the Integration Server namespace data for a flat file dictionary entry, entire flat file dictionary, or flat file schema. In this sample, the flow service invokes the pub.flatFile.generate:findDependants service to retrieve the data for an entire flat file dictionary.
2
Invoke the pub.string:stringToBytes service to convert the namespace data (in String format) to a byte[]. For more information about this service, see the webMethods Integration Server Built-In Services Reference.
With the INVOKE stringToBytes flow operation selected, in the pipeline, map the FFXML output from the pub.flatFile.generate:findDependants service to the input of the stringToBytes service.
3
Add code to or invoke a service that you create to write the byte[] to an XML file.