Follow the procedure below to send multiple events to WSO2 DAS via XML/JSON.
- Create an event receiver of any receiver type that supports XML/JSON mapping. The following is a list of such receiver types.
- Define input mapping for the event receiver you created.
- If the message fomat you selected for the receiver is
xml, specify an appropriate parent selector path to be considered the top XML element. As a result, if the events received have multiple sub elements within the element specified as the parent selector path, they are considered as multiple events.
For detailed instructions to define XML mapping, see Input Mapping Types - XML input mapping.
- If the message fomat you selected for the receiver is json, define JSON mapping for the receiver. As a result, when events received are in JSON arrays, the objects within the arrays are considered as individual events.
For detailed instructions to define JSON mapping, see Input Mapping Types - JSON input mapping.