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
  • 1.  Asynchronous services calls in DataPower

    Posted Fri July 14, 2023 03:31 AM

    Hi All,

    Can anyone provide me with guidance on how I can make Asynchronous service calls using DataPower? And also how to test the service.



    ------------------------------
    Anusha Pudari
    ------------------------------


  • 2.  RE: Asynchronous services calls in DataPower

    Posted Fri July 14, 2023 09:41 AM

    Hi Anusha,

    This is a very broad and unclear question so I apologize if this is not the answer you are seeking.

    If I interpret your question directly, it sounds like you want to maybe make asynchronous service invocations?   That is, call something like an MPG or WSP asynchronously?

    You can create a simple rule on another testing service to invoke the service endpoints with asynch results actions or GatewayScript (see below).

    With that asked, there are several ways to do it.  First, in the standard drag-and-drop policy rule configuration, there is an option on the action configuration to execute asynchronously.  You might want to also look at the event sync action as well, as this will allow you to fire off several actions asynchronously and then wait for them to complete.

    Another way is to use GatewayScript.  Some GatwayScript methods are asynchronous, but then you can explicitly make code run asynchronously via something like the standard JavaScript setTimeout method.

    So, that's where I'm going to start with an answer.

    To test it, you'll need to figure out how to drive traffic to the service.



    ------------------------------
    Joseph Morgan
    ------------------------------