Note: | The flat file resulting from pub.flatFile:convertToString will be only as complete as the information translated from the original flat file to the IS document. If you specified only certain parts of the flat file to translate to the IS document (via the flat file schema), only those parts will be translated back to the flat file. |
Step 1 | Create a flat file schema to be used for conversion of the object. You use Software AG Designer to create the flat file schemas used to create outbound flat files. For steps to create flat file schemas, see webMethods Service Development Help. | ||
Step 2 | Convert the IS document to a flat file. Invoke the pub.flatfile:convertToString service to convert an IS document (IData object) to an outbound flat file using the flat file schema you created. This service enables you to specify delimiters to be used as record, field, and subfield separators as well as optionally specify an outputFileName so that the output also will be written to a file.
| ||
Step 3 | Send the flat file. You can send a flat file using many methods, including via HTTP, SMTP, and FTP. For more information, see Sending and Receiving Flat Files. |