`

WSDL study

阅读更多

http://www.w3schools.com/wsdl/default.asp

 

 

WSDL Tutorial

WSDL (Web Services Description Language) is an XML-based language for describing Web services and how to access them.

 

 

Table of Contents

Introduction to WSDL
This introduction to WSDL explains what WSDL is.

WSDL Documents
This chapter explains the main parts of an WSDL document.

WSDL Ports
This chapter explains the WSDL port interface.

WSDL Binding
This chapter explains the WSDL binding interface.

WSDL and UDDI
This chapter explains how UDDI (Universal Description Discovery and Integration) is integrated with WSDL.

WSDL Syntax
The full WSDL syntax as listed in the W3C note.

 

 

 

 

  • WSDL is used to describe Web services
  • WSDL is also used to locate Web services
  •  

     

     

    A WSDL document describes a web service using these major elements:

    ElementDefines
    <portType> The operations performed by the web service
    <message> The messages used by the web service
    <types> The data types used by the web service
    <binding> The communication protocols used by the web service

     

    The <portType>  can be compared to a function library (or a module, or a class) in a traditional programming language.

    <message> can be compared to the parameters of a function call in a traditional programming language.

    The <types> element defines the data type that are used by the web service

    The <binding> element defines the message format and protocol details for each port.

     

     

    WSDL Ports

    The <portType> element is the most important WSDL element.

    It defines a web service, the operations that can be performed, and the messages that are involved.

    <portType name="glossaryTerms"> 
      <operation name="getTerm">     
        <input message="getTermRequest"/>      
        <output message="getTermResponse"/>  
      </operation>
    </portType>

     

     

     

     

     

    <binding type="glossaryTerms" name="b1">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
      <operation>
        <soap:operation soapAction="http://example.com/getTerm"/>
        <input>
          <soap:body use="literal"/>
        </input>
        <output>
          <soap:body use="literal"/>
        </output>
      </operation>
    </binding>

     

     

    The binding element has two attributes - the name attribute and the type attribute.

    The name attribute (you can use any name you want) defines the name of the binding, and the type attribute points to the port for the binding, in this case the "glossaryTerms" port.

     

    The soap:binding element has two attributes - the style attribute and the transport attribute.

    The style attribute can be "rpc" or "document". In this case we use document. The transport attribute defines the SOAP protocol to use. In this case we use HTTP.

     

     

    The operation element defines each operation that the port exposes.

    For each operation the corresponding SOAP action has to be defined. You must also specify how the input and output are encoded. In this case we use "literal".

     

     

    UDDI uses WSDL to describe interfaces to web services

     

     

     

    分享到:
    评论

    相关推荐

      Sun Certified Enterprise Architect for J2EE Study Guide

      书中会涵盖WS-I(Web Services Interoperability)标准、WSDL(Web Services Description Language)和UDDI(Universal Description, Discovery, and Integration)。 8. **设计模式和架构原则**:作为企业架构师,...

      axis_study

      总之,"axis_study"涉及了Web服务开发的核心技术,包括Apache Axis的使用、Web服务的基础概念、WSDL的编写、服务的安全性和性能优化等。深入理解这些知识点,将有助于开发者高效地创建和管理Web服务。

      onvif-study-data.rar_ONVIF_onvif IPC_onvif gsoap_onvif-study-dat

      这个压缩包“onvif-study-data.rar”包含了一系列与ONVIF相关的文档,是研究ONVIF协议、特别是针对天视通(可能是一家专注于IPC,即网络摄像机的制造商)的gSOAP应用的宝贵资源。 1. **ONVIF实现说明.doc**:此文档...

      Axis2-study.zip_axis2_doc

      标题"Axis2-study.zip_axis2_doc"表明这是一个关于Axis2的压缩文件,其中可能包含了Axis2的学习资料,特别是文档形式的内容。"Axis2"是Apache软件基金会开发的一个开放源代码Web服务平台,它主要用于构建和部署Web...

      j2ee study

      这篇名为“j2ee study”的学习资料可能涵盖了J2EE的基础知识、进阶概念和实战技巧。博主Tendyming在ITEYE博客上分享了他们的学习心得,这通常会包含代码示例、问题解析和项目经验。由于链接无法直接访问,我们可以...

      SCEA Study Guide

      4. **Web服务**:包括SOAP、WSDL和UDDI,以及如何使用Java API for XML Web Services (JAX-WS)和Java API for RESTful Web Services (JAX-RS)创建和消费Web服务。 5. **SOA和Web服务**:了解服务导向架构的概念,...

      StudyDemo:学习演示

      学习演示 ... parseWsdl:重组jar,测试解析wsdl文件(关闭了主机验证,支持转发) spring-cloud-demo:春天云练习Demo common-das:解析表结构并根据表结构生成对应的sql并执行,返回sql执行结果

      XML学习资料合集之一

      study_XML Web Service描述语言 WSDL 详解.doc Web Service描述语言 WSDL 详解.pdf XML 终极教程 xmlsdk30.chi xmlsdk30.chm XML基础教程.chm XML学习指南 XML官方指南中文版(CHM) XML实用大全.chm XML指南.chm XML...

      XML学习资料合集之三

      study_XML Web Service描述语言 WSDL 详解.doc Web Service描述语言 WSDL 详解.pdf XML 终极教程 xmlsdk30.chi xmlsdk30.chm XML基础教程.chm XML学习指南 XML官方指南中文版(CHM) XML实用大全.chm XML指南.chm XML...

      XML学习资料合集之二

      study_XML Web Service描述语言 WSDL 详解.doc Web Service描述语言 WSDL 详解.pdf XML 终极教程 xmlsdk30.chi xmlsdk30.chm XML基础教程.chm XML学习指南 XML官方指南中文版(CHM) XML实用大全.chm XML指南.chm XML...

      sun certified enterprise architect for java ee study guide exam 310-051新版.rar

      该压缩包中的"Sun Certified Enterprise Architect for Java EE Study Guide Exam 310-051新版"文件,是专门为准备310-051考试的学习者设计的。 Java EE(Java Platform, Enterprise Edition),即Java企业版,是...

      Prentice.Hall.Sun.Certified.Enterprise.Architect.for.Java.EE.Study.Guide.2nd.Edition.Jan.2010.rar

      《Prentice Hall Sun Certified Enterprise Architect for Java EE Study Guide》是针对Java企业级架构师认证考试的一本权威学习指南,2010年1月的第二版。这本书深入探讨了Java企业版(Java EE)平台上的企业级架构...

      Spring2+CXF实现webservice笔记

      @WebService(targetNamespace = "http://jdk.study.hermit.org/client") public interface UserService { @WebMethod(operationName = "Insert") public void insert(@WebParam(name = "userId") String userid, ...

      21天学通java EE 源代码

      在Web服务中,读者可以学习如何创建和消费服务,理解WSDL和XML Schema的原理。EJB部分则可能包含状态管理和会话bean的实现,以及事务管理。JPA则涉及到数据库对象的持久化,学习ORM(对象关系映射)的概念。 Case...

      cxf下开发webservice

      `name`、`serviceName`和`targetNamespace`属性分别用于指定WSDL文档中的`wsdl:portType`、`wsdl:service`和命名空间。例如: ```java @WebService(targetNamespace = "http://jdk.study.hermit.org/client") ``` 2...

      CXF+SPRING.doc

      @WebService(targetNamespace="http://jdk.study.hermit.org/client") public interface UserService { // 插入用户操作 @WebMethod(operationName="Insert") public void insert( @WebParam(name="userId") ...

      CXF 经典开发例子

      @WebService(targetNamespace = "http://jdk.study.hermit.org/client") public interface UserService { @WebMethod(operationName = "Insert") public void insert( @WebParam(name = "userId") String userid...

      casjava源码-Gradle-SOAP--A-Gradle-Case-Study:Java技术期刊上“GradleSOAP:AGradle

      在`Gradle-SOAP--A-Gradle-Case-Study-master`中,我们可以预期看到类似的组织。 2. **构建脚本** (`build.gradle`):在这个案例中,`build.gradle`文件将详细说明如何配置Gradle来处理SOAP相关的任务,比如编译...

      Axis实践之Axis入门

      【Axis实践之Axis入门】 Axis是一个流行的开源SOAP(Simple Object Access ...继续深入学习,你将掌握更多关于Web服务开发的专业知识,如WSDL、SOAP消息结构、服务安全以及与其他技术(如JAX-RPC、JAX-WS)的集成等。

    Global site tag (gtag.js) - Google Analytics