Hi Keerthika,

This is a custom requirement which is more like a while loop. You need to
write a class mediator to implement this logic since ESB does not have a
construct similar to while loop.

Thanks,
Chanaka

On Tue, Mar 31, 2015 at 6:56 PM, Keerthika Mahendralingam <
keerth...@wso2.com> wrote:

> Hi All,
>
> When we invoke a method in Marketo API we are getting the following
> response:
>
> {
>    "requestId":"a9ae#148add1e53d",
>    "success":true,
>
>  "nextPageToken":"GIYDAOBNGEYS2MBWKQYDAORQGA5DAMBOGAYDAKZQGAYDALBRGA3TQ===",
>    "moreResult":true,
>    "result":[
>       {
>          "id":2,
>          "leadId":6,
>          "activityDate":"2013-09-26T06:56:35+0000",
>          "activityTypeId":12
>       },
>       {
>          "id":3,
>          "leadId":9,
>          "activityDate":"2013-12-28T00:39:45+0000",
>          "activityTypeId":1
>       }
>    ]
> }
>
> If the moreResult attribute is true in the response,  we need to call this
> method until the moreResult attribute returns false. The nextPageToken
> returned from the previous call need to be reused for the next iteration of
> this call. How can we do this?
>
> --
> <dev-requ...@wso2.org>
> Keerthika Mahendralingam
> Associate Software Engineer
> Mobile :+94 (0) 776 121144
> keerth...@wso2.com
> WSO2, Inc.
> lean . enterprise . middleware
>



-- 
--
Chanaka Fernando
Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya
Wordpress:http://chanakaudaya.wordpress.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to