2012-09-11 28 views

回答

1

import com.eviware.soapui.impl.wsdl.*; 

String projectFile ="PATHTO/GoogleSearch-soapui-project.xml"; 
WsdlProject project = new WsdlProject (projectFile); 

List operationList = project.getInterfaceAt(0).getAllOperations(); 

int length = operationList.size(); 
String name; 

for (int i=0; i<length; i++) { 
    name = operationList.get(i).getName(); 
    log.info name; 
} 

這是工作。

相關問題