cancel
Showing results for 
Search instead for 
Did you mean: 

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

Highlighted
Occasional Contributor

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?



2 REPLIES 2
Highlighted
New Member

Re: SoapUI 5.1.3, mockRequest.getRequest().getParameter("paramName") - returns null for PO

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?

Highlighted
New Contributor

Re: SoapUI 5.1.3, mockRequest.getRequest().getParameter("paramName") - returns null for PO

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

New Here?
Join us and watch the welcome video:
Top Kudoed Authors