Forum Discussion

chriso's avatar
chriso
New Contributor
9 years ago

New Soap project with WSDL gives InvalidDefinitionException - Works in SoapSonar/Visual Studio/IE

Why does this not work in SOAPUI, but work in SoapSonar and Visual Studio?

 

Create a New Soap project using the service file (.svc) appending the ?WSDL (even tried the ?SimpleWsdl)

 

I get a very uninformative: InvalidDefinitionException 

 

Mon Jun 27 14:39:17 BST 2016:ERROR:com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException
   com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException
   	at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.makeInvalidDefinitionException(WsdlLoader.java:119)
   	at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.loadXmlObject(WsdlLoader.java:109)
   	at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:488)
   	at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:477)
   	at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionCache.update(AbstractDefinitionCache.java:94)
   	at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext$Loader.construct(AbstractDefinitionContext.java:209)
   	at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:46)
   	at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:131)
   	at java.lang.Thread.run(Unknown Source)

 

Is SOAPUI 5.2.1 broken?

 

Cheers,

 

C.

  • nmrao's avatar
    nmrao
    Champion Level 3
    Did you try opening it in the browser? what happens?
  • nmrao's avatar
    nmrao
    Champion Level 3
    Just going thru again the question. Why did you append ?wsdl at the end? What is url that opens fine in the browser? Try the same url in soapui, do not append anything.
    • chriso's avatar
      chriso
      New Contributor

      Hi Thanks for looking, but that's what I use in the browser (Its a dot net thing) to get to the wsdl.

       

      If I remove the ?wsdl from the end and put this in the Initial WSDL field of a new SOAPUI project, it fails with exactly the same error - so I suspect it appends it automatically anyway:

       

      Tue Jun 28 15:19:46 BST 2016:ERROR:com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException
         com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException
         	at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.makeInvalidDefinitionException(WsdlLoader.java:119)
         	at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.loadXmlObject(WsdlLoader.java:112)
         	at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:488)
         	at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:477)
         	at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionCache.update(AbstractDefinitionCache.java:94)
         	at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext$Loader.construct(AbstractDefinitionContext.java:209)
         	at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:46)
         	at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:131)
         	at java.lang.Thread.run(Unknown Source)