此 XML 文件似乎没有任何关联的样式信息 [英] This XML file does not appear to have any style information associated with it
问题描述
我已将我的网络服务部署到 Tomcat 中.WSDL 有一些像 ViewOptions 这样的操作,但是当我运行它时,我得到了这个错误:
I have deployed my webservice into Tomcat. The WSDL has got some operations like ViewOptions, but when I ran that, I got this error:
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>
为什么会出现此错误?
推荐答案
该消息不是错误"而是警告 n 不需要解决而是忽略.XML 文档是一种数据结构,但内部不包含任何表示/样式信息.通常,XML 文档用于应用程序间通信或作为纯数据结构使用,然后与额外的表示/样式信息一起使用以显示给用户.
The message isn't an "error" but rather a warning n need not be solved but ignored. An XML document is a data structure but does not contain any presentation/style information internally. Normally an XML document is used in inter-application communication or as a pure data structure that is then used with additional presentation/style information to display to users.
XML 可以通过 XSLT 应用样式,就像通过 CSS 应用 HTML 一样,可以消除上述警告 例如:将 xls 应用于 xml
XML can be applied style by XSLT just as HTML by CSS and the above warning can be eradicated An eg: of applying xls to xml
我们不使用 xls 为 RSS、Web 服务呈现 xml,因为它们只是用于通信而不应用样式表,而不是在浏览器中呈现给用户.
所以,这里一切都很好.
So, everything is fine here.
这篇关于此 XML 文件似乎没有任何关联的样式信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!