13 years ago
PLS HELP: "SoapUI: error: duplicate attribute 'xmlns:tns'"
SoapUi Pro 4.0.1 - expired license.
I'm creating a New Soapui Project. I input into the "initial wsdl/wadl" field of the "New SoapUI Project" create screen: http://localhost:8080/archiveservice/v1 ... rvice.wsdl. I get the following error:
Pop-up Window:
Error loading WSDL
Error loading WSDL
There was something wrong with the WSDL you are trying to import.
Error loading [http://localhost:8080/archiveservice/v1/wsdl/Archive/wsdls/BFSArchiveService.wsdl]: org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: duplicate attribute 'xmlns:tns
the project does not build and returns to the "New SoapUI Project" create screen.
the "http log" screen lists my entire wsdl - but stops at the end. That is, no xsd's are listed. Normall, i would see wsdl and all xsd imports.
the "soapUI log" lists:
Wed Mar 28 08:39:30 MDT 2012:DEBUG:Getting wsdl component from [http://localhost:8080/archiveservice/v1/wsdl/Archive/wsdls/BFSArchiveService.wsdl]
Wed Mar 28 08:39:30 MDT 2012:ERROR:Failed to load url [http://localhost:8080/archiveservice/v1/wsdl/Archive/wsdls/BFSArchiveService.wsdl]
Wed Mar 28 08:39:30 MDT 2012:ERROR:An error occured [com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException], see error log for details
the "error log" lists:
Wed Mar 28 08:39:30 MDT 2012: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:534)
at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:523)
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(Thread.java:662)
I've looked in the <soapuiInstallDir>/bin folder at soapui-errors.log and soapui.log, but they provide no more additional info.
I can create a project from the same WSDL/XSD's (same War file) deployed to TomCat. This issue happens to be from a deployment to JBoss 7.1.1.
I have many XSD's which are imported by the wsdl. I searched through all for the string: 'xmlns:tns' ensuring there are no files using the same 'xmlns:tns' definition of a namespace.
Usually when i get these InvalidDefinitionException errors, SOAPUI provides me more info on the problem - this time i'm at a loss to explain what is going on.
thanks!
I'm creating a New Soapui Project. I input into the "initial wsdl/wadl" field of the "New SoapUI Project" create screen: http://localhost:8080/archiveservice/v1 ... rvice.wsdl. I get the following error:
Pop-up Window:
Error loading WSDL
Error loading WSDL
There was something wrong with the WSDL you are trying to import.
Error loading [http://localhost:8080/archiveservice/v1/wsdl/Archive/wsdls/BFSArchiveService.wsdl]: org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: duplicate attribute 'xmlns:tns
the project does not build and returns to the "New SoapUI Project" create screen.
the "http log" screen lists my entire wsdl - but stops at the end. That is, no xsd's are listed. Normall, i would see wsdl and all xsd imports.
the "soapUI log" lists:
Wed Mar 28 08:39:30 MDT 2012:DEBUG:Getting wsdl component from [http://localhost:8080/archiveservice/v1/wsdl/Archive/wsdls/BFSArchiveService.wsdl]
Wed Mar 28 08:39:30 MDT 2012:ERROR:Failed to load url [http://localhost:8080/archiveservice/v1/wsdl/Archive/wsdls/BFSArchiveService.wsdl]
Wed Mar 28 08:39:30 MDT 2012:ERROR:An error occured [com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException], see error log for details
the "error log" lists:
Wed Mar 28 08:39:30 MDT 2012: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:534)
at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:523)
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(Thread.java:662)
I've looked in the <soapuiInstallDir>/bin folder at soapui-errors.log and soapui.log, but they provide no more additional info.
I can create a project from the same WSDL/XSD's (same War file) deployed to TomCat. This issue happens to be from a deployment to JBoss 7.1.1.
I have many XSD's which are imported by the wsdl. I searched through all for the string: 'xmlns:tns' ensuring there are no files using the same 'xmlns:tns' definition of a namespace.
Usually when i get these InvalidDefinitionException errors, SOAPUI provides me more info on the problem - this time i'm at a loss to explain what is going on.
thanks!