Forum Discussion

alchemiz's avatar
alchemiz
Contributor III
4 months ago
Solved

SOAP execute snap vs REST post/Http client snap

Hi SMEs, Good day, any reason why response from SOAP execute snap is taking much longer than with a REST/HTTP client snap? Is this because SOAP execute snap have a large overhead compared with a ...
  • del's avatar
    5 years ago

    I believe the main issue is jsonPath is returning an array, so for Next URL you will need to index it with [0].

    jsonPath($, "$entity.links[?(@.rel=='next-page')].href")[0]

    And with it producing an array, a more appropriate Has next condition might be to check for the array length > 0. (Yet I suspect it will work as-is in this specific use case.)

    jsonPath($, "$entity.links[?(@.rel=='next-page')].href").length > 0