Forum Discussion

SiKing's avatar
SiKing
Community Expert
10 years ago

REST call with variable name parameters

I have a case where I need to call a REST service that uses parameters such as:
http://host/wapi1.php?action=bet_place_bet&multi[X][Y]=Z
where X, Y, and Z are all variables. How can I accomplish this in SoapUI?

I suspect there is no out of the box solution. Could you please suggest an approach to modify the parameter name of a REST call, even using Groovy, to accomplish this?

Thank You.

13 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    Glad to hear this is working for you now.

    Also, RequestFilter.filterRequest event runs after the request is submitted! (Could this be a bug?)


    Actually, there was a bug (defect SOAP-2708) in which the RequestFilter.filterRequest event handler was not working in SoapUI Pro 5.1.0. That defect is fixed in 5.1.1. Try 5.1.1 and check if you have the same problem.


    Regards,
    Marcus
    SmartBear Support
  • SiKing's avatar
    SiKing
    Community Expert
    SmartBear Support wrote:
    Try 5.1.1 and check if you have the same problem.

    That will not work for me. I am stuck on version 4.6 due to various bugs, and especially now the new licensing scheme. Actually due to bugs I have to use 2 versions: 4.5.1 and 4.6.0 to verify all my tests.

    But it seems like starting with version 4.6.4, RequestFilter.filterRequest works as expected.