DataPower

DataPower

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

how to restrict the numberof calls in Gateway script

  • 1.  how to restrict the numberof calls in Gateway script

    Posted Mon November 23, 2020 12:01 PM

    Hi

    I have below input message and data is array and IDList is an array. Inside Array again I have "testIDs", and that is also an array.

    Now my requirement is I will get morethan 10 "testId's" form the array, if testId's list cross morethan 6 , for the 7th id, we have to make new call I again,with that 7th- testID. Below is the url and body is the payload for the below url

    Could you please suggest do we have any functions in gatewayscript or xslt where we can restrict these side calls.

    POST - https://10.10.9.10:8000/test/external/api/v1/test/Bulk?isInternalIDs=TRUE&includeFields=extId

    {

    "data": [

    {

    "IdList": [

    {

    "createdByUserName": "System",

    "testIDs": [

    "5e9638bbebeb0f2772224f6",

    "5e963002ebeb0f7bc0790d9c",

    "5e9636acebeb0f6f7b0e6740",

    "5e963c68ebeb0f7bc0789cea",

    "5e9636acebeb0f6f9b0e6742",

    "5e9639deebe70f421a062b92",

    "5e9639deebe70f421a062b92"

    ]

    }

    ]

    }

    ]

    }

    Thank you



    #DataPower
    #Support
    #SupportMigration


  • 2.  RE: how to restrict the numberof calls in Gateway script

    Posted Tue December 01, 2020 08:31 AM

    Hi,

    so are you saying that you only want to make a call (url-open???) if your loop hits the seventh id? Please explain "restrict side calls".

    --HP



    #DataPower
    #Support
    #SupportMigration