Reply
Highlighted
N/A
Posts: 1
Registered: ‎08-01-2011

How to do REST array (method?p=1&p=2&=3)

In jQuery and ASP.NET a simply array of parameters can be passed as repeating the same parameter value:

http://mymethod?p=1&p=2&p=3

In asp.net this can be received as 'int p[]', and an array of 3 integers is received.

How to send this rest request from SOAPUI? Does not seem to allow repeated parameters.

Phil
N/A
Posts: 1
Registered: ‎08-06-2012

Re: How to do REST array (method?p=1&p=2&=3)

Hello,

I know i post is old but i found the response :

  • Create a new ressource

  • Add parameter and check the option : "Disables Encoding" (ex : id)

  • Create a new request

  • When you fill the field's value u can write this "&id=...&id=...".


With this method u can send a url like this : http://localhost/?id=1&id2&id=3 and get an array in the server side