use of com.eviware.soapui.impl.wsdl.mock.WsdlMockResponse in project microcks by microcks.
the class SoapUIProjectImporter method buildResponse.
/**
* Build a domain Response from SoapUI MockResponse using this dispatchCriteria.
*/
private Response buildResponse(MockResponse mockResponse, String dispatchCriteria) {
Response response = new Response();
response.setName(mockResponse.getName());
response.setContent(((WsdlMockResponse) mockResponse).getResponseContent());
response.setHeaders(buildHeaders(((WsdlMockResponse) mockResponse).getResponseHeaders()));
response.setDispatchCriteria(dispatchCriteria);
if ("500".equals(((WsdlMockResponse) mockResponse).getConfig().getHttpResponseStatus())) {
response.setFault(true);
}
return response;
}
Aggregations