Forum Discussion
eduardocasino
8 years agoNew Contributor
I'll answer myself, this is the correct code:
if ( mockRequest.httpRequest.method != "GET" && mockRequest.httpRequest.method != "POST" ) { mockRequest.httpResponse.status = 405 return new com.eviware.soapui.impl.rest.mock.RestMockResult( mockRequest ) }