what is the difference between XSD and WSDL

前端 未结 8 2073
忘掉有多难
忘掉有多难 2020-12-12 09:41

What is the difference between an XML Schema and WSDL?

The difference I noticed is that WSDL contains XSD and in

8条回答
  •  半阙折子戏
    2020-12-12 10:33

    WSDL (Web Services Description Language) describes your service and its operations - what is the service called, which methods does it offer, what kind of in parameters and return values do these methods have?

    It's a description of the behavior of the service - it's functionality.

    XSD (Xml Schema Definition) describes the static structure of the complex data types being exchanged by those service methods. It describes the types, their fields, any restriction on those fields (like max length or a regex pattern) and so forth.

    It's a description of datatypes and thus static properties of the service - it's about data.

提交回复
热议问题