XSD 和 WSDL 有什么区别? [英] What is the difference between XSD and WSDL?

查看:36
本文介绍了XSD 和 WSDL 有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

XML SchemaWSDL 有什么区别?

我注意到的不同之处在于 WSDL 包含 XSD 并且在 WSDL 中我们可以声明操作,但不能在 XSD 中声明代码>.对吗?

The difference I noticed is that WSDL contains XSD and in WSDL we can declare operations, but not in XSD. Is that correct?

推荐答案

XSD 定义了一个架构,它定义了 XML 文档的结构.您可以使用它来检查给定的 XML 文档是否有效并遵循您在架构中制定的规则.

XSD defines a schema which is a definition of how an XML document can be structured. You can use it to check that a given XML document is valid and follows the rules you've laid out in the schema.

WSDL 是描述 Web 服务的 XML 文档.它显示了哪些操作可用以及应如何构建数据以发送到这些操作.

WSDL is a XML document that describes a web service. It shows which operations are available and how data should be structured to send to those operations.

WSDL 文档有一个关联的 XSD,用于显示可以放入 WSDL 文档的有效内容.

WSDL documents have an associated XSD that show what is valid to put in a WSDL document.

这篇关于XSD 和 WSDL 有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆