Forum Discussion

multiware's avatar
multiware
Occasional Contributor
10 years ago

SoapUI 5.1.3, mockRequest.getRequest().getParameter("paramName") - returns null for POST request

Hi All,

While trying to extract parameters in "MockeService/MockAction/Dispatch script" from POST request we faced the following issue:

POST with parameters ecoded: application/x-www-form-urlencoded

mockRequest.getRequest().getParameter("paramName") - returns null

parametersMap() is empty

 

the same code in SoapUI 5.0.0 works correctly,

Any ideas? or ways to bypass this issue?



  • I am too facing the same issue for version 5.1.3. 

    Have you tried changing the version? Can it be specific to this version only?

    • ljboiler's avatar
      ljboiler
      New Contributor

      Try mockRequest.getHttpRequest().getParameter("paramName").