This XML file does not appear to have any style information associated with it

荒凉一梦 提交于 2020-01-11 09:37:08

问题


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>

Why do we get this error?


回答1:


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 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

We don't present xml using xls for RSS, Web Services as they are just used for communication without applying stylesheet rather than meant to be presented to user in browser.

So, everything is fine here.



来源:https://stackoverflow.com/questions/7551106/this-xml-file-does-not-appear-to-have-any-style-information-associated-with-it

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!