0
我目前正在編寫一個使用SOAPUI API來測試請求的Java程序。在下載並將soapui-4.5.1.jar添加到類路徑後,我得到一個NoSuchMethodException異常。NoSuchMethodException SoapUI Java
Exception in thread "main" java.lang.NoSuchMethodError: com.eviware.soapui.config.ProjectConfig.setActiveEnvironment(Ljava/lang/String;)V
at com.eviware.soapui.impl.wsdl.WsdlProject.setActiveEnvironment(WsdlProject.java:444)
at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:308)
at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:212)
at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:202)
at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:187)
at soap.WsdlRequest.testRequest(WsdlRequest.java:17)
at soap.WsdlRequest.main(WsdlRequest.java:45)
我查看了com.eviware.soapui.config.ProjectConfig類,它有一個setActiveEnvironment方法。我想知道我是否使用了正確的soapui版本。