SophiaKJ
15 years agoNew Contributor
SoapUI not working when Or'ing query parameters
When I use a logical Or statement in my HTTP web service call, SoapUI returns a Java Exception and 0 results. The same HTTP web service query works in a browser. Here is an example:
http://...endpoint?XMLRequest=<Search KeyWord="heart" Collection="documents|videos|podcasts" ResultsPerPage="100"</Search>
So in this example, if I use the Or'ed values of documents, videos and podcasts, I get the exception and no values returned. In the browser it works just fine. Here is the exception:
Mon Jun 06 14:20:36 MDT 2011:ERROR:Exception in request: java.lang.StringIndexOutOfBoundsException: String index out of range: -5
For now I have to run my tests from the browser. I would rather run them from SoapUI.
http://...endpoint?XMLRequest=<Search KeyWord="heart" Collection="documents|videos|podcasts" ResultsPerPage="100"</Search>
So in this example, if I use the Or'ed values of documents, videos and podcasts, I get the exception and no values returned. In the browser it works just fine. Here is the exception:
Mon Jun 06 14:20:36 MDT 2011:ERROR:Exception in request: java.lang.StringIndexOutOfBoundsException: String index out of range: -5
For now I have to run my tests from the browser. I would rather run them from SoapUI.