Web Services测试中的Internet Explorer与soapui

时间:2011-06-05 11:42:20

标签: web-services soapui

我有一个wsdl / soap的网络服务。当我在Internet Explorer中测试它时,它向我展示了整个xml,但是当我用soapui测试它时,它会向我显示一个错误,其中包含日志错误请求。

在soapui和Internet Explorer中测试wsdl / soap有什么区别?谢谢你的回答。

请问如何修复此错误?当我尝试用soapui导入我的WSDl时,我有错误:

取值

un Jun 05 14:10:37 CEST 2011:ERROR:javax.wsdl.WSDLException: WSDLException (at /html): faultCode=INVALID_WSDL: Expected element '{http://schemas.xmlsoap.org/wsdl/}definitions'.
   javax.wsdl.WSDLException: WSDLException (at /html): faultCode=INVALID_WSDL: Expected element '{http://schemas.xmlsoap.org/wsdl/}definitions'.
    at com.ibm.wsdl.xml.WSDLReaderImpl.checkElementName(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:48)
    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(Thread.java:637)

1 个答案:

答案 0 :(得分:0)

我假设当你在IE中说测试时,你的意思是在最后用WSDL浏览到WS URL?

如果是这种情况,那么这个测试只会在浏览器中显示WSDL定义的XML - 所以只要托管的WSDL是有效的,XML IE就会显示它。

但是,当您尝试设置soapUI项目进行测试时,它将验证它是否是有效的WSDL / XSD(而不仅仅是检查它是否是有效的XML,例如所有标记都正确关闭等)。

如果您需要更多帮助来了解问题,我们需要查看soapUI中的日志/错误。