zoukankan      html  css  js  c++  java
  • A Quick Introduction to WSDL

    A Quick Introduction to WSDL
    Windows Mobile Not SupportedWindows Embedded CE Supported
    8/28/2008

    The Web Services Description Language (WSDL) is an XML message format for describing the network services offered by the server.

    You use WSDL to create a file that identifies the services provided by the server and the set of operations within each service that the server supports.

    For operation, the WSDL file also describes the format that the client must follow in requesting an operation.

    Note:
    The SOAP Toolkit for Windows Embedded CE is compliant with the Web Services Description Language (WSDL) 1.1 Specification, which can be found on the World Wide Web Consortium Web site.

    Because the WSDL file sets up requirements for both server and client, this file is like a contract: The server agrees to provide certain services if the client sends a properly formatted SOAP request.

    Suppose a WSDL file defines a service called StockQuoteService. This service describes operations such as GetLastTradePrice, GetLowestPriceOfTheDay, and GetHighestPriceOfTheDay. You place this file on the server.

    A client who wants to send a SOAP request to the server first obtains a copy of this WSDL file from the server. The client then uses the information in this file to format a SOAP request.

    The client sends this request to the server. The server executes the requested operation and sends the resulting stock price back to the client as a SOAP response.

    Note:
    Unless otherwise specified, the "wsdl" namespace is the namespace used for all WSDL elements discussed in this documentation.

    The operations in the WSDL file can be document oriented or remote procedure call (RPC) oriented, as defined by the style attribute of the <soap:binding> element in the file.

    If an operation in the WSDL file is document-oriented, the input (request) and output (response) messages specified for that operation contain XML documents.

    For example, a WSDL file defines a SubmitPO operation such that this operation expects a purchase order document, which is an XML document, as the input message part and returns another XML document for the response that might have information such as the purchase order tracking number.

    RPC-oriented operations have input messages that contain the operations' input parameters and output messages that contain the operations' results.

    For example, the input message parts for the Add operation defined in the WSDL file in Code Listing for the Calc.wsdl File are the parameter values for the Add method on the server, while the output message part returns the result of the addition.

    WSDL File Example

    For an example of a WSDL file and a description of the file's contents, see About the Calc.wsdl File.

  • 相关阅读:
    【BZOJ4553】[Tjoi2016&Heoi2016]序列 cdq分治+树状数组
    【BZOJ4556】[Tjoi2016&Heoi2016]字符串 后缀数组+二分+主席树+RMQ
    【BZOJ4559】[JLoi2016]成绩比较 动态规划+容斥+组合数学
    STM32L476应用开发之七:流量的PID控制
    STM32L476应用开发之六:电池SOC检测
    信息摘要算法之一:MD5算法解析及实现
    我的家乡
    STM32L476应用开发之五:数据保存与SD卡操作
    STM32L476应用开发之四:触摸屏驱动与数据交互
    STM32L476应用开发之三:串行通讯实验
  • 原文地址:https://www.cnblogs.com/MayGarden/p/1651316.html
Copyright © 2011-2022 走看看