return mockResponse;
}
public WsdlMockResponse addNewMockResponse( String name, boolean createResponse )
{
MockResponseConfig responseConfig = getConfig().addNewResponse();
responseConfig.setName( name );
responseConfig.addNewResponseContent();
if( createResponse && getOperation() != null && getOperation().isBidirectional() )
{
boolean createOptional = SoapUI.getSettings().getBoolean(
WsdlSettings.XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS );
CompressedStringSupport.setString( responseConfig.getResponseContent(),
getOperation().createResponse( createOptional ) );
}
return addNewMockResponse( responseConfig );
}