Forum Discussion

theprophet's avatar
theprophet
Occasional Contributor
16 years ago

Exception while importing wsdl

Hi All,

I am getting the following exception while importing a WSDL in SoapUI.

Fri Jun 19 18:28:10 CEST 2009:DEBUG:Getting wsdl component from [http://xxx/abc.wsdl]
Fri Jun 19 18:28:13 CEST 2009:INFO:Initializing SSL

Fri Jun 19 18:28:13 CEST 2009:DEBUG:Getting wsdl component from [http://xxx/wsdl_0.wsdl]
Fri Jun 19 18:28:13 CEST 2009:DEBUG:Getting wsdl component from [http://xxx/xsd1.xsd]
Fri Jun 19 18:28:13 CEST 2009:DEBUG:Getting wsdl component from [http://xxx/xsd2.xsd]
Fri Jun 19 18:28:14 CEST 2009:DEBUG:Getting wsdl component from [http://xxx/xsd3.xsd]
Fri Jun 19 18:28:14 CEST 2009:ERROR:Failed to load url [http://xxx/xsd3.xsd]
Fri Jun 19 18:28:14 CEST 2009:ERROR:Loading of definition failed for [http://xxx/abc.wsdl]; org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA
Fri Jun 19 18:28:14 CEST 2009:ERROR:An error occured [error: Unexpected element: CDATA], see error log for details

From the error logs

Fri Jun 19 18:28:14 CEST 2009:ERROR:org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA
  org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA
  at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3476)
  at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1275)
  at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1262)
  at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
  at org.apache.xmlbeans.XmlObject$Factory.parse(XmlObject.java:722)
  at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.loadXmlObject(WsdlLoader.java:106)
  at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:469)
  at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:507)
  at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:481)
  at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:460)
  at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.cacheWsdl(WsdlLoader.java:176)
  at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext$Loader.construct(WsdlContext.java:207)
  at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:45)
  at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:111)
  at java.lang.Thread.run(Thread.java:619)
  Caused by: org.xml.sax.SAXParseException: Unexpected element: CDATA
  at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)
  at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)
  at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3444)
  ... 14 more
Fri Jun 19 18:28:14 CEST 2009:ERROR:org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA
  org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA
  at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3476)
  at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1275)
  at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1262)
  at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
  at org.apache.xmlbeans.XmlObject$Factory.parse(XmlObject.java:722)
  at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.loadXmlObject(WsdlLoader.java:106)
  at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:469)
  at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:507)
  at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:481)
  at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:460)
  at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.cacheWsdl(WsdlLoader.java:176)
  at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext$Loader.construct(WsdlContext.java:207)
  at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:45)
  at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:111)
  at java.lang.Thread.run(Thread.java:619)
  Caused by: org.xml.sax.SAXParseException: Unexpected element: CDATA
  at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)
  at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)
  at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3444)
  ... 14 more
Fri Jun 19 18:28:14 CEST 2009:ERROR:com.eviware.soapui.support.SoapUIException: Error importing wsdl
  com.eviware.soapui.support.SoapUIException: Error importing wsdl
  at com.eviware.soapui.impl.wsdl.WsdlProject.importWsdl(WsdlProject.java:567)
  at com.eviware.soapui.impl.wsdl.WsdlProject.importWsdl(WsdlProject.java:544)
  at com.eviware.soapui.impl.actions.NewWsdlProjectAction.perform(NewWsdlProjectAction.java:87)
  at com.eviware.soapui.impl.actions.NewWsdlProjectAction.perform(NewWsdlProjectAction.java:36)
  at com.eviware.soapui.SoapUI$NewWsdlProjectActionDelegate.actionPerformed(SoapUI.java:934)
  at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
  at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
  at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
  at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
  at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
  at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
  at java.awt.Component.processMouseEvent(Component.java:6041)
  at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
  at java.awt.Component.processEvent(Component.java:5806)
  at java.awt.Container.processEvent(Container.java:2058)
  at java.awt.Component.dispatchEventImpl(Component.java:4413)
  at java.awt.Container.dispatchEventImpl(Container.java:2116)
  at java.awt.Component.dispatchEvent(Component.java:4243)
  at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
  at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
  at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
  at java.awt.Container.dispatchEventImpl(Container.java:2102)
  at java.awt.Window.dispatchEventImpl(Window.java:2440)
  at java.awt.Component.dispatchEvent(Component.java:4243)
  at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
  at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
  at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
  at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
  at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
  Caused by: org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA
  at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3476)
  at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1275)
  at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1262)
  at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
  at org.apache.xmlbeans.XmlObject$Factory.parse(XmlObject.java:722)
  at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.loadXmlObject(WsdlLoader.java:106)
  at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:469)
  at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:507)
  at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:481)
  at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:460)
  at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.cacheWsdl(WsdlLoader.java:176)
  at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext$Loader.construct(WsdlContext.java:207)
  at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:45)
  at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:111)
  at java.lang.Thread.run(Thread.java:619)
  Caused by: org.xml.sax.SAXParseException: Unexpected element: CDATA
  at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)
  at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)
  at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3444)
  ... 14 more



The xsd3.xsd is as follows and is generated by Axis2. It is deployed correctly at http://xxx/xsd3.xsd

It is also getting validated in XMLSpy.


















The MSISDN associated with the account




The CMS related elements that are needed for creating a case










The MSISDN associated with the account




The CMS related elements that are needed for creating a case










The MSISDN associated with the account




The CMS related elements that are needed for creating a case












uniquely identifies a message




Name of the Client/consumer applications ex:rm-ivr






Billing Account ID definition - PNI Account code (legacy code)














This will be the reference number for the interfacing application. 
The data in this field should be constructed as follows: XXX-NNNNNNNNNN, where XXX (Char)
is the indicator of the application, and NNNNNNNNNN (number) is the unique identifier of this update
within the interfacing application





Different parameters used to form a case ex: may be self service or standard













The current status for the Case, allowed values Resolved, Pending















The number of calls it took to resolve the issue




The resolution taken for the issue









Please let me know what could be causing this issue. Seems pretty bizzare to me.