Re: [Dev] HTTP event receiver to accept batch of same type events
I'm able to publish array of objects[1] with your help. Thanks Lasantha. [1] [{ "event": { "payloadData": { } } }, { "event": { "payloadData": { } } }] On Wed, Dec 16, 2015 at 3:12 AM, Lasantha Fernandowrote: > Hi Udara, > > You can do this using an HTTP receiver as well. For this, you can use XML > input mapping and provide a parent selector xpath and if there are multiple > child elements within that larger XML element, they will be taken as > multiple events. > > Alternatively, if you are using JSON input mapping, if you send it as a > json array, the objects in the array will be taken as individual events. > > Thanks, > Lasantha > > On 16 December 2015 at 02:59, Udara Rathnayake wrote: > >> Hi, >> >> My requirement is to receive a set of events in a single request at DAS >> side. >> eg:- array of events >> >> is $subject possible else what is the recommended approach other than a >> http event receiver? >> >> -- >> Regards, >> UdaraR >> > > > > -- > *Lasantha Fernando* > Senior Software Engineer - Data Technologies Team > WSO2 Inc. http://wso2.com > > email: lasan...@wso2.com > mobile: (+94) 71 5247551 > -- Regards, UdaraR ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] HTTP event receiver to accept batch of same type events
Hi Udara, You can do this using an HTTP receiver as well. For this, you can use XML input mapping and provide a parent selector xpath and if there are multiple child elements within that larger XML element, they will be taken as multiple events. Alternatively, if you are using JSON input mapping, if you send it as a json array, the objects in the array will be taken as individual events. Thanks, Lasantha On 16 December 2015 at 02:59, Udara Rathnayakewrote: > Hi, > > My requirement is to receive a set of events in a single request at DAS > side. > eg:- array of events > > is $subject possible else what is the recommended approach other than a > http event receiver? > > -- > Regards, > UdaraR > -- *Lasantha Fernando* Senior Software Engineer - Data Technologies Team WSO2 Inc. http://wso2.com email: lasan...@wso2.com mobile: (+94) 71 5247551 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] HTTP event receiver to accept batch of same type events
Hi, My requirement is to receive a set of events in a single request at DAS side. eg:- array of events is $subject possible else what is the recommended approach other than a http event receiver? -- Regards, UdaraR ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev