此XML文件似乎没有与之关联的任何样式信息

3 web-services

我已将我的web服务部署到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>
Run Code Online (Sandbox Code Playgroud)

为什么我们会收到此错误?

Ang*_*dar 6

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

XML可以通过XSLT应用样式,就像CSS一样,可以消除上述警告.例如:将xls应用于xml

我们不使用xls for RSS,Web Services来呈现xml,因为它们仅用于通信而不应用样式表而不是用于在浏览器中呈现给用户.

所以,这里的一切都很好.