Forum Discussion

elavrov's avatar
13 years ago

Cannot create a new project (Unexpected element: CDATA )

Hi everyone,

When I upload WSDL to new project then SoapUI returns an exception:

Error loading [http://dev.revelup.com/enterprise/Establishment/1/new_list_all/?WSDL]: org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA

Error log:
Tue Mar 12 14:28:19 MSK 2013:WARN:Failed to delete temporary project file; C:\Documents and Settings\edlavrov\My Documents\project-temp-7381944185847087816.xml
Tue Mar 12 14:28:21 MSK 2013: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.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:226)
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(Unknown Source)

Version of the SoapUI: 4.5.1

Thanks.

1 Reply

  • Johneeee's avatar
    Johneeee
    New Contributor
    Hi There,
    This problem has no doubt long been sorted but for the benefit of others who encounter it I am replying.

    Unfortunately I do not know exactly what caused this error for me, but this is how I invoked it:-
    When trying to create a new project I tried to load the WSDL on the remote server by populating the 'Initial WSDL' field(on the New SOAP project dialog box) with the URL of the WSDL.

    How I got around this error:-
    I copied the WSDL folder & associated XSD's folders[apparently our environment is complex] to my local machine & populated the 'Initial WSDL' field with the local WSDL. All worked fine then.
    n.b. in our environment the WSDL uses it's own XSD, located in the same folder, and other 'generic' XSD's which are accessed via a relative path from the project WSDL. Consequently I kept the same dir structure that exists on the remote machine for all XSD files - the project XSD & the shared/ generic XSD's - on my local drive.