Forum Discussion

glromeo's avatar
glromeo
New Contributor
15 years ago

SOAPUI BUG in REST request parameters with regexp

Hi,
we are using SOAPUI to build our integration tests and we found an issue with the parameters of REST requests.
When the WADL specifies a path parameter as a regular expression SOAPUI doen't parse it and therefore doesn't fill the corresponding parameter in the UI and then prevents from executing the request at all.

Kind regards,

Gianluca
  • Hi!

    you are right, this is not fully supported.. can you give an example of such a regex expression so we can maybe have a look at supporting this?

    regards!

    /Ole
    eviware.com
  • sirtoxy's avatar
    sirtoxy
    New Contributor
    Have the same problem. Soap UI 3.6.1 can't handle this situation at all. However Soap UI 4.0.0 parse the expression {myparam:.*} like %7Bmyparam:.*%7D.
    Which is wrong. Can you fix that?
    Wadl example:

    <application><doc jersey:generatedBy="Jersey: 1.7 05/20/2011 11:04 AM"/>
    <resources base="http://localhost:8080/myapp/">
    <resource path="mymethod/{param1}/{otherParams:.*}">
    <param name="param1" style="template" type="xs:string"/>
    <param name="otherParams" style="template" type="xs:string"/>

    <method id="mymethod" name="GET">
    <response>
    <representation mediaType="application/json"/>
    </response>
    </method>
    </resource>
    </resources>
    </application>