what is the difference between XSD and WSDL

前端 未结 8 2053
忘掉有多难
忘掉有多难 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:17

    XSD (XML schema definition) defines the element in an XML document. It can be used to verify if the elements in the xml document adheres to the description in which the content is to be placed. While wsdl is specific type of XML document which describes the web service. WSDL itself adheres to a XSD.

    0 讨论(0)
  • 2020-12-12 10:19

    If someone is looking for analogy , this answer might be helpful.

    WSDL is like 'SHOW TABLE STATUS' command in mysql. It defines all the elements(request type, response type, format of URL to hit request,etc.,) which should be part of XML. By definition I mean: 1) Names of request or response 2) What should be treated as input , what should be treated as output.

    XSD is like DESCRIBE command in mysql. It tells what all variables and their types, a request and response contains.

    0 讨论(0)
  • 2020-12-12 10:23

    XSD is schema for WSDL file. XSD contain datatypes for WSDL. Element declared in XSD is valid to use in WSDL file. We can Check WSDL against XSD to check out web service WSDL is valid or not.

    0 讨论(0)
  • 2020-12-12 10:24

    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 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 documents have an associated XSD that show what is valid to put in a WSDL document.

    0 讨论(0)
  • 2020-12-12 10:28

    XSD is to validate the document, and contains metadata about the XML whereas WSDL is to describe the webservice location and operations.

    0 讨论(0)
  • 2020-12-12 10:31

    WSDL - It contains the Operation such as Methods which a webservice provides.and these method can accept simple data types such as int,float etc and complex data types such as objects ,vectors, arrays etc. so mapping this to an xml datatype xsd are used. and based upon the xsd an user who wants to acccess webservice from different platform can provide the data appropriately.

    Refer : ayazroomy-java.blogspot.com to read about basics of webservice.

    0 讨论(0)
提交回复
热议问题