The Publish operation publishes a message for a specific Apache Kafka topic that is specified in an XML input.
Input
The adapter expects a predefined XML structure as input. The structure depends on the data type of the message.
Data typeSTRING:
<Messages>
<Message>
<!-- This is a message. -->
</Message>
<Message>
<!-- This is another message. -->
</Message>
</Messages>
Data typeBYTES:
<Messages>
<Message>ZXN0byBlcyB1biBmaWNoZXJvIGRlIHRleHRv</Message>
</Messages>
Data type NUMERIC:
<Messages>
<Message>5428</Message>
</Messages>
|
Messages with and without headers can be mixed as desired:
|
Output
If execution is successful, the input is output.