Not able to import HTTPS WSDL in to SOAPUI in Java
Hi ,
I am trying to import https wsdl through the below code in java,
Settings settings = SoapUI.getSettings();
settings.setString("ProxySettings@host", "host");
settings.setString("ProxySettings@port", "port");
settings.setBoolean("ProxySettings@enableProxy",
true);
settings.setString("SSLSettings@keyStore", "C:/xx.p12");
settings.setString("SSLSettings@keyStorePassword",
"keystorepassword");
final WsdlInterface[] ifaces = WsdlInterfaceFactory.importWsdl(
new WsdlProject(), wsdlLoc, true);
But, I am getting the below exception,
com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException
at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.loadXmlObject(WsdlLoader.java:138)
at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:535)
at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:524)
at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionCache.update(AbstractDefinitionCache.java:97)
at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext$Loader.construct(AbstractDefinitionContext.java:236)
at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:46)
at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:149)
at java.lang.Thread.run(Thread.java:745)
Currently I am using soapui-4.5.2.jar file in my classpath.
Note: I am able to accessing the same https wsdl in SOAPUI application by setting up SSL keystore and Passwords and Enabling the Proxy with host and port.( SOAPUI version 5.2.1 )
Can Experts help on this.
Many Thanks.
Bala