XML to EDI transformer
Transforms XML messages into EDI (text) messages
Transformer that uses Smooks for converting XML documents into EDI messages.
The input messages must have the exact same XML format as the output messages of the EDI to XML transformer.
Supports the following message payload types for the XML content:
String
byte[]
File
InputStream
Reader
StreamSource
The resulting EDI messages will always be returned as a String
value.
EDI mapping
The EDI mapping file specifying the format of the request messages.
Required
Validate
Whether to perform data validation when processing the EDI content.
Note this validation only applies to the contents of fields/components/subcomponents that have one or more of the following settings specified: data type, min length or max length. The structure of the message is always validated during processing, irregardless of this setting.
Default is false.
Segment line break
Optional newline character(s) that will be used as line breaks between segments. If the segment delimiter already ends with such a line break, this setting has no effect.
Default is empty, meaning no line breaks between segments will be added.
The following options for the newline character(s) are available:
Carriage return, the newline character sequence on:
- Commodore 8-bit machines
- Acorn BBC
- ZX Spectrum
- TRS-80
- Apple II family
- Mac OS up to version 9
- OS-9
Carriage return + line feed, the newline character sequence on:
- Microsoft Windows
- DEC TOPS-10
- RT-11 and most other early non-Unix and non-IBM OSes
- CP/M
- MP/M
- DOS (MS-DOS, PC DOS, etc.)
- Atari TOS
- OS/2
- Symbian OS
- Palm OS
- Amstrad CPC
Line feed, the newline character sequence on:
- Multics
- Unix and Unix-like systems (GNU/Linux, OS X, FreeBSD, AIX, Xenix, etc.)
- BeOS
- Amiga
- RISC OS
Line feed + carriage return, the newline character sequence on:
- Acorn BBC
- RISC OS spooled text output
Charset
Character set to be used to decode the bytes of the incoming XML message into (readable) text. If the payload of the incoming message is already in "text form" (i.e. a String
, Reader
or StreamSource
), this property is not used.
Default is UTF-8
.
The supported encodings vary between different implementations of the Java platform, however the following encodings should always be available on any implementation: US-ASCII, ISO-8859-1, UTF-8, UTF-16BE, UTF-16LE, UTF-16.
A list of the supported encodings in the Sun/Oracle Java 6 SE runtime environment can be found here.
Additionally, eMagiz contains build-in support for the following two encodings:
- x-UTF-8-BOM (eight-bit Unicode Transformation Format, with byte-order mark)
- x-UTF-16BE-BOM (sixteen-bit UTF, big-endian byte order, with byte-order mark)
Send timeout
Set the timeout (in milliseconds) for sending messages to the output channel.
Default is -1
, i.e. wait indefinitely.
Output channel
Channel where output messages should be sent after (successfully) processing the input message.
You can select the nullChannel
here to silently drop the output messages.
Required
Input channel
Channel to consume the input messages from.
Required
Id
Name that uniquely identifies this flow component.
Required