allegro
11 years agoNew Contributor
SoapUI 5.0 requestContent is null for Rest Mock service
Hi guys,
I'm trying Rest Mock service. I need to take json or xml body from POST request which I send from Google Postman plugin, for example.
When I trying to get the message body by using mockRequest.requestContent in onRequest script (or in other places as well) I always get null value.
mockRequest.getHttpRequest() works well and returns HTTP header only.
Any thought, is mockRequest.requestContent supported for REST mock services?
Thanks in advance.
I'll be waiting for answers.
I'm trying Rest Mock service. I need to take json or xml body from POST request which I send from Google Postman plugin, for example.
When I trying to get the message body by using mockRequest.requestContent in onRequest script (or in other places as well) I always get null value.
mockRequest.getHttpRequest() works well and returns HTTP header only.
Any thought, is mockRequest.requestContent supported for REST mock services?
Thanks in advance.
I'll be waiting for answers.