Forum Discussion

corki's avatar
corki
Contributor
16 years ago

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 just included  whole  LIB  folder of soapUI install folder to  JAVA BUILDPath libraries, and now it works great.

    Sorry, but I have several others libraries in that LIB folder which made troubles and I had to delete them.
  • bchandu141's avatar
    bchandu141
    New Contributor
    Hi corki,

    I recently start working with eclipse and soapUI,
    May i know what are the jar files need to be added?

    Thanks in advance.

    -chandu