Operation: Publish
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
:
CODE
<Messages>
<Message>
<!-- This is a message. -->
</Message>
<Message>
<!-- This is another message. -->
</Message>
</Messages>
Data typeBYTES
:
CODE
<Messages>
<Message>ZXN0byBlcyB1biBmaWNoZXJvIGRlIHRleHRv</Message>
</Messages>
Data type NUMERIC
:
CODE
<Messages>
<Message>5428</Message>
</Messages>
Messages with and without headers can be mixed as desired:
CODE
|
Output
If execution is successful, the input is output.