Forum Discussion
jazzyekim
14 years agoOccasional Contributor
I have found a solution - the method that sets script for operation is setDispatchPath. For me this method name is confusing. But in any case - I am happy to find it 

for(WsdlMockOperation it: arrOperations)
{
it.setDispatchStyle("SCRIPT");
it.setDispatchPath("log.info('This is my script')");
}