【问题标题】:This XML file does not appear to have any style information associated with it此 XML 文件似乎没有任何关联的样式信息
【发布时间】:2011-09-26 05:57:12
【问题描述】:

我已将我的网络服务部署到 Tomcat 中。 WSDL 有一些类似 ViewOptions 的操作,但是当我运行它时,我得到了这个错误:

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>1</faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>

为什么会出现这个错误?

【问题讨论】:

    标签: web-services


    【解决方案1】:

    该消息不是“错误”,而是警告 n 不需要解决而是忽略。 XML 文档是一种数据结构,但内部不包含任何表示/样式信息。通常,XML 文档用于应用程序间通信或作为纯数据结构,然后与其他表示/样式信息一起使用以向用户显示。

    XML 可以被 XSLT 应用样式,就像 HTML 被 CSS 一样,上面的警告可以消除An eg: of applying xls to xml

    我们不使用用于 RSS、Web 服务的 xls 来呈现 xml,因为它们只是用于通信而不应用样式表,而不是在浏览器中呈现给用户。

    所以,这里一切都很好。

    【讨论】:

    • 更改您的状态行
    • 链接失效,修复
    【解决方案2】:

    什么对我的情况有用。我把&lt;a href=".."&gt; ... &lt;/a&gt;的所有链接都换成了window.open("...link", "_self")并改了

    import {
      HashRouter as Router,
    } from 'react-router-dom';
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-04
      • 2017-11-28
      • 2012-07-08
      • 1970-01-01
      • 1970-01-01
      • 2013-01-26
      相关资源
      最近更新 更多