Forum Discussion
SmartBear_Suppo
Alumni
15 years agoHi,
Writing the response manually can be done using the HttpResponse object of the MockRequest.
You'll need to modify your script slightly:
Regards,
Dain
SmartBear Sweden
Writing the response manually can be done using the HttpResponse object of the MockRequest.
You'll need to modify your script slightly:
import com.eviware.soapui.impl.wsdl.mock.WsdlMockResult
WsdlMockResult mockResult = new WsdlMockResult( mockRequest )
String s = "<some xml I would like to return>"
mockRequest.httpResponse.writer << s
mockRequest.httpResponse.status = 200
return mockResult
Regards,
Dain
SmartBear Sweden