Contributions
databaseConnectionContainer missing in groovy in readyapi?
Hi I have an old soapui-proejct, that I am trying to bring to life again. I ahve installed readyAPI 3 and I get this error when I am trying to run my test: Mon Jan 20 12:23:43 CET 2020: ERROR: An error occurred [No signature of method: com.eviware.soapui.impl.wsdl.support.connections.DefaultDatabaseConnectionContainer.getDatabaseConnectionByName() is applicable for argument types: (java.lang.String) values: [test]], see error log for details My script has this line: import groovy.sql.Sql Class.forName("oracle.jdbc.driver.OracleDriver") connection = testRunner.testCase.testSuite.project.databaseConnectionContainer.getDatabaseConnectionByName('test') when I edit the script, I can see in the editor, that the "project" doesn't seem to have an entry for "databaseConnectionContainer" anymore. I just don't know what to change it to - I have searched all I can think of, for a fix. Any hints/pointers? Thanks JanSolved5 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes3CommentsRe: Error importing wsdl
Hi As a matter of fact, I did solve it, but I am having trouble remembering how. I seem to recall that the wsdl was simply faulty. I downloaded the wsdl and changed some element to not have a namespace prefix and tried again, and I seem to remember that it worked. Anyway, we have later on moved to another web service which is generated from a newer version of JDeveloper which doesn't create faulty wsdl files. Sorry I can't be of more help. -- eliasen34KViews0likes0CommentsRe: Error importing wsdl
Right - hadn't noticed the "soapUI log" and "error log" at the bottom right. So, this is the information from the soapUI log: Tue Jan 26 10:28:44 CET 2010:ERROR:Loading of definition failed for [REPLACED_BY_ELIASEN/ValidateUserWS?WSDL]; javax.wsdl.WSDLException: WSDLException (at /definitions/types/ns0:schema): faultCode=INVALID_WSDL: Encountered illegal extension element '{http://schemas.xmlsoap.org/wsdl/}schema' in the context of a 'javax.wsdl.Types'. Extension elements must be in a namespace other than WSDL's. Tue Jan 26 10:28:44 CET 2010:ERROR:An error occured [WSDLException (at /definitions/types/ns0:schema): faultCode=INVALID_WSDL: Encountered illegal extension element '{http://schemas.xmlsoap.org/wsdl/}schema' in the context of a 'javax.wsdl.Types'. Extension elements must be in a namespace other than WSDL's.], see error log for details Tue Jan 26 10:28:44 CET 2010:ERROR:Error importing wsdl: java.lang.Exception: javax.wsdl.WSDLException: WSDLException (at /definitions/types/ns0:schema): faultCode=INVALID_WSDL: Encountered illegal extension element '{http://schemas.xmlsoap.org/wsdl/}schema' in the context of a 'javax.wsdl.Types'. Extension elements must be in a namespace other than WSDL's. Tue Jan 26 10:28:44 CET 2010:ERROR:An error occured [javax.wsdl.WSDLException: WSDLException (at /definitions/types/ns0:schema): faultCode=INVALID_WSDL: Encountered illegal extension element '{http://schemas.xmlsoap.org/wsdl/}schema' in the context of a 'javax.wsdl.Types'. Extension elements must be in a namespace other than WSDL's.], see error log for details Tue Jan 26 10:28:44 CET 2010:ERROR:An error occured [Error importing wsdl], see error log for details and this is the error from the error log: Tue Jan 26 10:28:44 CET 2010:ERROR:com.eviware.soapui.support.SoapUIException: Error importing wsdl com.eviware.soapui.support.SoapUIException: Error importing wsdl at com.eviware.soapui.impl.WsdlInterfaceFactory.importWsdl(WsdlInterfaceFactory.java:79) at com.eviware.soapui.impl.WsdlInterfaceFactory.importWsdl(WsdlInterfaceFactory.java:55) at com.eviware.soapui.impl.wsdl.actions.project.AddWsdlAction.importWsdl(AddWsdlAction.java:127) at com.eviware.soapui.impl.wsdl.actions.project.AddWsdlAction.perform(AddWsdlAction.java:105) at com.eviware.soapui.impl.wsdl.actions.project.AddWsdlAction.perform(AddWsdlAction.java:55) at com.eviware.soapui.support.action.swing.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:101) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.AbstractButton.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Caused by: java.lang.Exception: javax.wsdl.WSDLException: WSDLException (at /definitions/types/ns0:schema): faultCode=INVALID_WSDL: Encountered illegal extension element '{http://schemas.xmlsoap.org/wsdl/}schema' in the context of a 'javax.wsdl.Types'. Extension elements must be in a namespace other than WSDL's. at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext.load(AbstractDefinitionContext.java:157) at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlImporter.importWsdl(WsdlImporter.java:82) at com.eviware.soapui.impl.WsdlInterfaceFactory.importWsdl(WsdlInterfaceFactory.java:73) ... 32 more Caused by: javax.wsdl.WSDLException: WSDLException (at /definitions/types/ns0:schema): faultCode=INVALID_WSDL: Encountered illegal extension element '{http://schemas.xmlsoap.org/wsdl/}schema' in the context of a 'javax.wsdl.Types'. Extension elements must be in a namespace other than WSDL's. at com.ibm.wsdl.xml.WSDLReaderImpl.parseExtensibilityElement(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlInterfaceDefinition.load(WsdlInterfaceDefinition.java:47) at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext.loadDefinition(WsdlContext.java:66) at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext.loadDefinition(WsdlContext.java:30) at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext.cacheDefinition(AbstractDefinitionContext.java:264) at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext.access$400(AbstractDefinitionContext.java:44) at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext$Loader.construct(AbstractDefinitionContext.java:230) at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:46) at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:140) at java.lang.Thread.run(Unknown Source) Any help? Thanks!34KViews0likes0CommentsError importing wsdl
Hi all I am trying to use SoapUI for the first time. I have created a project, and am trying to "Add WSDL" in order to test a web service that I need to call in a project I am on. Now, when I enter the path to the web serviceI get a message box stating: com.eviware.soapui.support.SoapUIException: Error importing wsdl Nothing more is written, which makes it hard to find the error. Can I turn on some logging, or in any way get a better error description so I know what to look for? Thanks.67KViews0likes9Comments