#488 WSDL download fails if basic authentication is required

open
Lars
5
2009-09-22
2009-09-22
No

Since soapUI 3.0 WSDL download fails if basic authentication is required.

Tue Sep 22 08:35:15 CEST 2009:ERROR:Failed to load url [http://myhost/MyServce?wsdl]
Tue Sep 22 08:35:15 CEST 2009:ERROR:Loading of definition failed for [http://myhost/MyServce?wsdl]; org.apache.xmlbeans.XmlException: error: </body> does not close tag <HR>.
Tue Sep 22 08:35:15 CEST 2009:ERROR:An error occured [error: </body> does not close tag <HR>.], see error log for details

The username/ password dialog appears after the error message and has no effect.

Discussion

  • Ole Lensmar

    Ole Lensmar - 2009-09-22

    Hi Dennis,

    hmm.. have you enabled preemptive authentication in the global http settings? If that does not help, could you attach the contents of the soapUI http log after this happens? Also please update to the latest nightly build available at http://www.eviware.com/nightly-builds

    regards,

    /Ole
    eviware.com

     
  • Dennis Kieselhorst

    Preemptive authentication is enabled.

    12:46:15,219 DEBUG [com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader] Getting wsdl component from [http://myhost:10080/MyService?wsdl]
    12:46:15,250 INFO [com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader] myhost:10080 requires authentication with the realm 'My Services'
    12:46:15,250 DEBUG [com.eviware.soapui.threads] runInUIThread: syncExec com.eviware.soapui.impl.wsdl.support.wsdl.UrlWsdlLoader$WsdlCredentialsProvider$ShowDialog
    12:46:15,266 ERROR [com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader] Failed to load url [http://myhost:10080/MyService?wsdl]
    12:46:15,266 ERROR [com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext] Loading of definition failed for [http://myhost:10080/MyService?wsdl]; org.apache.xmlbeans.XmlException: error: </body> does not close tag <HR>.
    12:46:15,266 ERROR [com.eviware.soapui.SoapUI] An error occured [error: </body> does not close tag <HR>.], see error log for details
    12:46:15,266 ERROR [com.eviware.soapui.impl.WsdlInterfaceFactory] Error importing wsdl: java.lang.Exception: org.apache.xmlbeans.XmlException: error: </body> does not close tag <HR>.
    12:46:15,266 ERROR [com.eviware.soapui.SoapUI] An error occured [org.apache.xmlbeans.XmlException: error: </body> does not close tag <HR>.], see error log for details
    12:46:15,297 ERROR [com.eviware.soapui.SoapUI] An error occured [Error importing wsdl], see error log for details
    12:46:15,297 DEBUG [com.eviware.soapui.threads] SwtDialogs.showErrorMessage[com.eviware.soapui.support.SoapUIException: Error importing wsdl] -> runInUIThread
    12:46:15,297 DEBUG [com.eviware.soapui.threads] runInUIThread: syncExec com.eviware.x.impl.swt.SwtDialogs$7
    12:46:15,313 DEBUG [com.eviware.soapui.threads] SwtDialogs.showErrorMessage: run

     
  • Ole Lensmar

    Ole Lensmar - 2009-09-28

    Hi!

    sorry.. hm.. can you attach the http-log as well?

    regards!

    /Ole
    eviware.com

     
  • Dennis Kieselhorst

    http log is empty.

    error log:

    Mon Sep 28 19:58:16 CEST 2009:ERROR:org.apache.xmlbeans.XmlException: error: </body> does not close tag <HR>.
    org.apache.xmlbeans.XmlException: error: </body> does not close tag <HR>.
    at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486)
    at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1276)
    at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1263)
    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:107)
    at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:516)
    at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:505)
    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:221)
    at com.eviware.x.impl.swt.SwtProgressDialog$InternalRunnableWithProgress.run(SwtProgressDialog.java:138)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
    Caused by: org.xml.sax.SAXParseException: </body> does not close tag <HR>.
    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:3454)
    ... 11 more
    Mon Sep 28 19:58:16 CEST 2009:ERROR:java.lang.Exception: org.apache.xmlbeans.XmlException: error: </body> does not close tag <HR>.
    java.lang.Exception: org.apache.xmlbeans.XmlException: error: </body> does not close tag <HR>.
    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)
    at com.eviware.soapui.impl.WsdlInterfaceFactory.importWsdl(WsdlInterfaceFactory.java:55)
    at com.eviware.soapui.impl.actions.NewWsdlProjectAction.importWsdl(NewWsdlProjectAction.java:215)
    at com.eviware.soapui.impl.actions.NewWsdlProjectAction.perform(NewWsdlProjectAction.java:151)
    at com.eviware.soapui.impl.actions.NewWsdlProjectAction.perform(NewWsdlProjectAction.java:51)
    at com.eviware.soapui.support.action.swing.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:101)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
    at java.awt.Component.processMouseEvent(Component.java:5488)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
    at java.awt.Component.processEvent(Component.java:5253)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Caused by: org.apache.xmlbeans.XmlException: error: </body> does not close tag <HR>.
    at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486)
    at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1276)
    at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1263)
    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:107)
    at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:516)
    at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:505)
    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:221)
    at com.eviware.x.impl.swt.SwtProgressDialog$InternalRunnableWithProgress.run(SwtProgressDialog.java:138)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
    Caused by: org.xml.sax.SAXParseException: </body> does not close tag <HR>.
    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:3454)
    ... 11 more
    Mon Sep 28 19:58:16 CEST 2009: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.actions.NewWsdlProjectAction.importWsdl(NewWsdlProjectAction.java:215)
    at com.eviware.soapui.impl.actions.NewWsdlProjectAction.perform(NewWsdlProjectAction.java:151)
    at com.eviware.soapui.impl.actions.NewWsdlProjectAction.perform(NewWsdlProjectAction.java:51)
    at com.eviware.soapui.support.action.swing.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:101)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
    at java.awt.Component.processMouseEvent(Component.java:5488)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
    at java.awt.Component.processEvent(Component.java:5253)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Caused by: java.lang.Exception: org.apache.xmlbeans.XmlException: error: </body> does not close tag <HR>.
    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)
    ... 31 more
    Caused by: org.apache.xmlbeans.XmlException: error: </body> does not close tag <HR>.
    at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486)
    at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1276)
    at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1263)
    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:107)
    at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:516)
    at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:505)
    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:221)
    at com.eviware.x.impl.swt.SwtProgressDialog$InternalRunnableWithProgress.run(SwtProgressDialog.java:138)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
    Caused by: org.xml.sax.SAXParseException: </body> does not close tag <HR>.
    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:3454)
    ... 11 more

     
  • gizit

    gizit - 2009-10-08

    Dennis,

    I had the same error. From the http log I found out that it is caused by an error page that is returned by my app server (JBoss 4.3/Tomcat) in response to a request to a schema that is imported in the wsdl. This schema is at a location that cannot be retreived, resulting in a HTTP/1.1 405 Method Not Allowed. The returned errorpage however is not valid xml, resulting in the error. Fix the import to your schema / make sure it can be retreived through a HTTP GET and off you go.

     
  • Dennis Kieselhorst

    I'm afraid there is no schema import. The error is caused by a HTTP 401 because the username/ password dialog appears after the wsdl download request.

     
  • Nobody/Anonymous

    Hi,
    even I am getting the same error.I have done the preemptive authentication.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks