mamar
11 years agoContributor
create a project dynamically with wsdl with groovy
Hi,
I need to create a soap project dynamically from one of my test run. I read this post from soapui http://www.soapui.org/Developers-Corner/integrating-with-soapui.html and was trying to create a project with the existing wsdl file. I followed the same process, but getting an error. Can anyone help me on how to create a project with an existing wsdl, with its operations?.
My code looks like below.
and the error i get is
I need to create a soap project dynamically from one of my test run. I read this post from soapui http://www.soapui.org/Developers-Corner/integrating-with-soapui.html and was trying to create a project with the existing wsdl file. I followed the same process, but getting an error. Can anyone help me on how to create a project with an existing wsdl, with its operations?.
My code looks like below.
import com.eviware.soapui.impl.wsdl.*
import com.eviware.soapui.impl.WsdlInterfaceFactory
project = new WsdlProject()
//wsdl = new WsdlInterfaceFactory()
project.setName("Test");
WsdlInterface iface = WsdlInterfaceFactory.importWsdl(project, "C:\\junk\\AcctInq_v2_1.wsdl", true)[0];
and the error i get is
com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException