corki
16 years agoContributor
HOW TO load soapUI PROJECT (xml) with java code in ECLIPSE
Hi all,
I want to use soapUI classes, libraries, jars
to load soapUI project and extract informations from it
in Eclipse using normal JAVA language.
I am trying to do something like :
import com.eviware.soapui.impl.wsdl.*;
public class FirstClass {
public static void main(String[] args) {
System.out.println("Hello Margit");
// create new project
WsdlProject project = new wsdlProject ( "C:/EventSearch-soapui-project.xml", "" );
}
}
I dont know how to do this, becouse this code brings me several errors, but the project in Eclipse knows all JARS of the soapUI install folder. Can someone paste here simple code of loading existing soapUI project (I dont know maybe wrong function is used , maybe openProject(...),... I dont know )
Error:
Cau Margit
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(Ljava/lang/ClassLoader;Ljava/lang/String;)Lorg/apache/xmlbeans/SchemaTypeSystem;
at com.eviware.soapui.config.SoapuiSettingsDocumentConfig.
I want to use soapUI classes, libraries, jars
to load soapUI project and extract informations from it
in Eclipse using normal JAVA language.
I am trying to do something like :
import com.eviware.soapui.impl.wsdl.*;
public class FirstClass {
public static void main(String[] args) {
System.out.println("Hello Margit");
// create new project
WsdlProject project = new wsdlProject ( "C:/EventSearch-soapui-project.xml", "" );
}
}
I dont know how to do this, becouse this code brings me several errors, but the project in Eclipse knows all JARS of the soapUI install folder. Can someone paste here simple code of loading existing soapUI project (I dont know maybe wrong function is used , maybe openProject(...),... I dont know )
Error:
Cau Margit
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(Ljava/lang/ClassLoader;Ljava/lang/String;)Lorg/apache/xmlbeans/SchemaTypeSystem;
at com.eviware.soapui.config.SoapuiSettingsDocumentConfig.