Forum Discussion
aacsoares
12 years agoNew Contributor
Hi thanks, for the return.
I used a groovy script to generate the 202 situation with no body. We verified with the client that his implementation did not return a body for response and an HTTP 202. I saw this because the XSD did not contains the response definition. The script to simulate is like below:
Unfortunately I do not know how to add null check to the servlet. This is my first "advance" iteration to SOAPUI. If you have any example or tutorial I can handle myself after.
Thanks in advance.
I used a groovy script to generate the 202 situation with no body. We verified with the client that his implementation did not return a body for response and an HTTP 202. I saw this because the XSD did not contains the response definition. The script to simulate is like below:
if ( mockRequest.method == "POST" )
{
def mockResponse = mockRequest.getHttpResponse()
mockResponse.setStatus(202, "Accepted")
return new com.eviware.soapui.impl.wsdl.mock.WsdlMockResult(mockRequest)
}
Unfortunately I do not know how to add null check to the servlet. This is my first "advance" iteration to SOAPUI. If you have any example or tutorial I can handle myself after.
Thanks in advance.