Contributions
Re: [Res]duplicate properties in REST request
Thanks Jeshtha for providing me the rest of the required configuration. It works! To summarize: - in Resource or in Method, add parameter (use style = QUERY) - select parameter and enable "Disable Encoding" at bottom of page - in Request, select parameter and set Multi-Value Delimiter to \| in bottom-left properties section - set a value of, e.g., 1|2|3 for the parameter (can use DataGen) - request will be sent out with, e.g., parameter=1¶meter=2¶meter=3 SB11 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.9KViews1like0CommentsRe: [Res]duplicate properties in REST request
That's actually the Resource Definition, so all methods and requests below it are affected. I worked around this by creating a new child resource for this. The request now looks like this: Mon Feb 24 14:07:39 PST 2014:DEBUG:Sending request: GET /dev?StartDate=01-Jan-2014&EndDate=31-Jan-2014/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/client/ HTTP/1.1 Is this a bug in SoapUI Pro 4.6.4? If not, what am I doing wrong? SB11 years agoPlace ReadyAPI QuestionsReadyAPI Questions7.1KViews0likes0CommentsRe: [Res]duplicate properties in REST request
Thanks again Jeshtha. What else do I need to do for the parameters to be correctly processed and sent? I get this: java.net.URISyntaxException: Illegal character in query at index 66: https://XXX.com/dev/api/calendar/locations?LocationIds=23|33|44&StartDate=01-JAN-2014&EndDate=31-AUG-2014 I would like to get this: GET /dev/api/calendar/locations?locationIds=23&locationIds=33&locationIds=44&startDate=01-JAN-2014&endDate=31-AUG-2014 Severin B.11 years agoPlace ReadyAPI QuestionsReadyAPI Questions7.1KViews0likes0CommentsRe: [Res]duplicate properties in REST request
Hi Jeshtha, Thanks for your reply. Can you tell me where I specify the multiple parameter? Do you have a screenshot? I created a DataGen that returns "96|44|4" but the request looks incorrect (and fails): DEBUG:>> "GET /dev/api/calendar/locations?LocationId=96%7C44%7C4&StartDate=01-JAN-2014&EndDate=31-AUG-2014 HTTP/1.1[\r][\n]" Cheers, Severin B.11 years agoPlace ReadyAPI QuestionsReadyAPI Questions7.2KViews0likes0Comments- 11 years agoPlace ReadyAPI QuestionsReadyAPI Questions9KViews0likes0Comments
Re: [Res]duplicate properties in REST request
Hello, The linked post refers to "a property for setting this", but I cannot see the nightly build changelog. Can you please expand upon the various options for setting and controlling multiple values for a parameter? Can I assign multiple values to a parameter using a properties transfer or Groovy script, and if so, how? (Or please point me to any existing documentation / web page on this topic... I searched but found nothing.) Thx. Severin B.11 years agoPlace ReadyAPI QuestionsReadyAPI Questions7.2KViews0likes0Comments[Res]duplicate properties in REST request
Hello, How to I configure a REST method/request to have duplicate properties, e.g., GET /dev/api/calendar/locations?locationIds=96&locationIds=33&startDate=01-Feb-2014&endDate=28-Feb-2014 As you can see, property "locationIds" is included twice. If the REST method/request cannot be configured to support this, can I build the GET command programmatically? I have tried to 'cheat' by setting the value of locationIds to "96&locationIds=33" but the ampersand and the equals symbols are replaced by their code (even though I tried to entitize them). So, is this possible to do, and if so, how? Sincerely, Séverin B.11 years agoPlace ReadyAPI QuestionsReadyAPI Questions9.4KViews0likes14CommentsRe: [Res]Not in GZIP format
SmartBear Support wrote: Do you have deflate in the Accept-Encoding when sending the request? Yes. Is this good or bad? The request header is as follows (without auth or host strings): POST https://***/courts/pcssReport HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: application/soap+xml;charset=UTF-8;action="JusticePCSSCommon_wsProvider_pcssReport_Binder_getJustinReport" Authorization: Basic ***== Content-Length: 942 Host: *** Connection: Keep-Alive User-Agent: Apache-HttpClient/4.1.1 (java 1.5)11 years agoPlace ReadyAPI QuestionsReadyAPI Questions9KViews0likes0Comments