Forum Discussion

ar1607's avatar
ar1607
New Contributor
8 years ago
Solved

[SoapUI 5.2.1] mockRequest is NULL in REST MockService

I'm using SoapUI 5.2.1 and I have a REST MockService. Whenever I try to implement the following script, I get the NullPointerException .   Script: def requestBody = mockRequest.getRequestContent()...
  • rupert_anderson's avatar
    8 years ago

    Hi,

     

    Like Rao said, we need a few more details, the functionality should definitely work. Here is my mock setup for reference:

    The output you can see in the (script) log is the result of me making a GET request of: http://localhost:9090/test?p=hello

     

    Regards,

    Rup