`
iloveflower
  • 浏览: 78946 次
社区版块
存档分类
最新评论
  • iloveflower: 呵呵。好好学习。。。。。。。。。。。。
    java 读书
  • Eric.Yan: 看了一点,不过是电子版的……你这一说到提醒我了,还要继续学习哈 ...
    java 读书

WSDL sample(the weathernetwork)

 
阅读更多
WSDL 文档在Web服务的定义中使用下列元素:

    Types - 数据类型定义的容器,它使用某种类型系统(一般地使用XML Schema中的类型系统)。
    Message - 通信消息的数据结构的抽象类型化定义。使用Types所定义的类型来定义整个消息的数据结构。
    Operation - 对服务中所支持的操作的抽象描述,一般单个Operation描述了一个访问入口的请求/响应消息对。
    PortType - 对于某个访问入口点类型所支持的操作的抽象集合,这些操作可以由一个或多个服务访问点来支持。
    Binding - 特定端口类型的具体协议和数据格式规范的绑定。
    Port - 定义为协议/数据格式绑定与具体Web访问地址组合的单个服务访问点。
    Service- 相关服务访问点的集合。


<?xml version="1.0" encoding="utf-8" ?>
- <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.webserviceX.NET" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://www.webserviceX.NET" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
- <wsdl:types>
- <s:schema elementFormDefault="qualified" targetNamespace="http://www.webserviceX.NET">
- <s:element name="GetWeather">
- <s:complexType>
- <s:sequence>
  <s:element minOccurs="0" maxOccurs="1" name="CityName" type="s:string" />
  <s:element minOccurs="0" maxOccurs="1" name="CountryName" type="s:string" />
  </s:sequence>
  </s:complexType>
  </s:element>
- <s:element name="GetWeatherResponse">
- <s:complexType>
- <s:sequence>
  <s:element minOccurs="0" maxOccurs="1" name="GetWeatherResult" type="s:string" />
  </s:sequence>
  </s:complexType>
  </s:element>
- <s:element name="GetCitiesByCountry">
- <s:complexType>
- <s:sequence>
  <s:element minOccurs="0" maxOccurs="1" name="CountryName" type="s:string" />
  </s:sequence>
  </s:complexType>
  </s:element>
- <s:element name="GetCitiesByCountryResponse">
- <s:complexType>
- <s:sequence>
  <s:element minOccurs="0" maxOccurs="1" name="GetCitiesByCountryResult" type="s:string" />
  </s:sequence>
  </s:complexType>
  </s:element>
  <s:element name="string" nillable="true" type="s:string" />
  </s:schema>
  </wsdl:types>
- <wsdl:message name="GetWeatherSoapIn">
  <wsdl:part name="parameters" element="tns:GetWeather" />
  </wsdl:message>
- <wsdl:message name="GetWeatherSoapOut">
  <wsdl:part name="parameters" element="tns:GetWeatherResponse" />
  </wsdl:message>
- <wsdl:message name="GetCitiesByCountrySoapIn">
  <wsdl:part name="parameters" element="tns:GetCitiesByCountry" />
  </wsdl:message>
- <wsdl:message name="GetCitiesByCountrySoapOut">
  <wsdl:part name="parameters" element="tns:GetCitiesByCountryResponse" />
  </wsdl:message>
- <wsdl:message name="GetWeatherHttpGetIn">
  <wsdl:part name="CityName" type="s:string" />
  <wsdl:part name="CountryName" type="s:string" />
  </wsdl:message>
- <wsdl:message name="GetWeatherHttpGetOut">
  <wsdl:part name="Body" element="tns:string" />
  </wsdl:message>
- <wsdl:message name="GetCitiesByCountryHttpGetIn">
  <wsdl:part name="CountryName" type="s:string" />
  </wsdl:message>
- <wsdl:message name="GetCitiesByCountryHttpGetOut">
  <wsdl:part name="Body" element="tns:string" />
  </wsdl:message>
- <wsdl:message name="GetWeatherHttpPostIn">
  <wsdl:part name="CityName" type="s:string" />
  <wsdl:part name="CountryName" type="s:string" />
  </wsdl:message>
- <wsdl:message name="GetWeatherHttpPostOut">
  <wsdl:part name="Body" element="tns:string" />
  </wsdl:message>
- <wsdl:message name="GetCitiesByCountryHttpPostIn">
  <wsdl:part name="CountryName" type="s:string" />
  </wsdl:message>
- <wsdl:message name="GetCitiesByCountryHttpPostOut">
  <wsdl:part name="Body" element="tns:string" />
  </wsdl:message>
- <wsdl:portType name="GlobalWeatherSoap">
- <wsdl:operation name="GetWeather">
  <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get weather report for all major cities around the world.</wsdl:documentation>
  <wsdl:input message="tns:GetWeatherSoapIn" />
  <wsdl:output message="tns:GetWeatherSoapOut" />
  </wsdl:operation>
- <wsdl:operation name="GetCitiesByCountry">
  <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get all major cities by country name(full / part).</wsdl:documentation>
  <wsdl:input message="tns:GetCitiesByCountrySoapIn" />
  <wsdl:output message="tns:GetCitiesByCountrySoapOut" />
  </wsdl:operation>
  </wsdl:portType>
- <wsdl:portType name="GlobalWeatherHttpGet">
- <wsdl:operation name="GetWeather">
  <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get weather report for all major cities around the world.</wsdl:documentation>
  <wsdl:input message="tns:GetWeatherHttpGetIn" />
  <wsdl:output message="tns:GetWeatherHttpGetOut" />
  </wsdl:operation>
- <wsdl:operation name="GetCitiesByCountry">
  <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get all major cities by country name(full / part).</wsdl:documentation>
  <wsdl:input message="tns:GetCitiesByCountryHttpGetIn" />
  <wsdl:output message="tns:GetCitiesByCountryHttpGetOut" />
  </wsdl:operation>
  </wsdl:portType>
- <wsdl:portType name="GlobalWeatherHttpPost">
- <wsdl:operation name="GetWeather">
  <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get weather report for all major cities around the world.</wsdl:documentation>
  <wsdl:input message="tns:GetWeatherHttpPostIn" />
  <wsdl:output message="tns:GetWeatherHttpPostOut" />
  </wsdl:operation>
- <wsdl:operation name="GetCitiesByCountry">
  <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get all major cities by country name(full / part).</wsdl:documentation>
  <wsdl:input message="tns:GetCitiesByCountryHttpPostIn" />
  <wsdl:output message="tns:GetCitiesByCountryHttpPostOut" />
  </wsdl:operation>
  </wsdl:portType>
- <wsdl:binding name="GlobalWeatherSoap" type="tns:GlobalWeatherSoap">
  <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="GetWeather">
  <soap:operation soapAction="http://www.webserviceX.NET/GetWeather" style="document" />
- <wsdl:input>
  <soap:body use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="GetCitiesByCountry">
  <soap:operation soapAction="http://www.webserviceX.NET/GetCitiesByCountry" style="document" />
- <wsdl:input>
  <soap:body use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:binding name="GlobalWeatherSoap12" type="tns:GlobalWeatherSoap">
  <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="GetWeather">
  <soap12:operation soapAction="http://www.webserviceX.NET/GetWeather" style="document" />
- <wsdl:input>
  <soap12:body use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap12:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="GetCitiesByCountry">
  <soap12:operation soapAction="http://www.webserviceX.NET/GetCitiesByCountry" style="document" />
- <wsdl:input>
  <soap12:body use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap12:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:binding name="GlobalWeatherHttpGet" type="tns:GlobalWeatherHttpGet">
  <http:binding verb="GET" />
- <wsdl:operation name="GetWeather">
  <http:operation location="/GetWeather" />
- <wsdl:input>
  <http:urlEncoded />
  </wsdl:input>
- <wsdl:output>
  <mime:mimeXml part="Body" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="GetCitiesByCountry">
  <http:operation location="/GetCitiesByCountry" />
- <wsdl:input>
  <http:urlEncoded />
  </wsdl:input>
- <wsdl:output>
  <mime:mimeXml part="Body" />
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:binding name="GlobalWeatherHttpPost" type="tns:GlobalWeatherHttpPost">
  <http:binding verb="POST" />
- <wsdl:operation name="GetWeather">
  <http:operation location="/GetWeather" />
- <wsdl:input>
  <mime:content type="application/x-www-form-urlencoded" />
  </wsdl:input>
- <wsdl:output>
  <mime:mimeXml part="Body" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="GetCitiesByCountry">
  <http:operation location="/GetCitiesByCountry" />
- <wsdl:input>
  <mime:content type="application/x-www-form-urlencoded" />
  </wsdl:input>
- <wsdl:output>
  <mime:mimeXml part="Body" />
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:service name="GlobalWeather">
- <wsdl:port name="GlobalWeatherSoap" binding="tns:GlobalWeatherSoap">
  <soap:address location="http://www.webservicex.net/globalweather.asmx" />
  </wsdl:port>
- <wsdl:port name="GlobalWeatherSoap12" binding="tns:GlobalWeatherSoap12">
  <soap12:address location="http://www.webservicex.net/globalweather.asmx" />
  </wsdl:port>
- <wsdl:port name="GlobalWeatherHttpGet" binding="tns:GlobalWeatherHttpGet">
  <http:address location="http://www.webservicex.net/globalweather.asmx" />
  </wsdl:port>
- <wsdl:port name="GlobalWeatherHttpPost" binding="tns:GlobalWeatherHttpPost">
  <http:address location="http://www.webservicex.net/globalweather.asmx" />
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>
分享到:
评论

相关推荐

    wsdl4j 解析wsdl 文件

    WSDL4J是一个Java库,专门用于解析和操作Web服务描述语言(WSDL)文件。WSDL是一种XML格式,用于定义网络服务的接口,包括其输入、输出、操作和服务绑定等信息。理解WSDL4J的工作原理和使用方法对于开发和消费基于...

    wsdl例子wsdl例子wsdl例子

    标题中的“wsdl例子”重复多次,显然在强调WSDL(Web Service Description Language)这一主题,而描述中的内容虽然重复,但可以理解为对WSDL的深入探讨或示例的展示。 **WSDL(Web Service Description Language)...

    Importing WSDL Documents in the SAP NetWeaver Developer Studio.doc

    在SAP NetWeaver Developer Studio中导入WSDL文档是创建Web服务的重要步骤,无论是采用外向内模式(outside-in)创建Web服务还是自动生成Web服务代理。WSDL(Web服务描述语言)文档定义了Web服务的接口,包括其操作...

    WSDL.rar_C# 解析wsdl文件_WSDL_解析WSDL

    在IT行业中,Web服务是应用程序之间交互的一种标准方式,而WSDL(Web Services Description Language)则是用来定义这些服务接口的XML格式规范。本项目“WSDL.rar”提供了一个C#编写的WSDL解析器,旨在帮助开发者更...

    Wsdl.rar_The Competition_WSDL

    《Wsdl.rar_The Competition_WSDL》是一个与顶级编码竞赛相关的压缩包,主要涉及WSDL(Web Services Description Language)这一核心知识点。WSDL是用于定义Web服务接口的标准XML语言,它描述了服务的位置、服务提供...

    wsdl调用测试工具

    在IT行业中,WSDL(Web Services Description Language)是一种XML格式的规范,用于描述Web服务及其接口。它定义了服务提供商和消费者之间的交互方式,包括消息格式、操作、地址和协议等。当我们面对“WSDL调用测试...

    wsdl需要的jar包

    Web服务描述语言(WSDL,Web Services Description Language)是一种XML格式,用于定义Web服务的接口,使得客户端和服务端能够理解如何交互。WSDL文件描述了服务的位置、服务使用的消息协议以及服务提供的操作。在...

    wsdl.rar_WSDL

    在本压缩包“wsdl.rar”中,包含了若干个WSDL文档,这对于学习和理解WebService的开发者来说是一份宝贵的学习资料。 **1. WSDL基本结构** WSDL文档由一系列元素组成,包括服务、消息、操作、绑定、端口类型和接口。...

    JavaScript 调用wsdl示例

    JavaScript调用WSDL(Web Service Definition Language)是Web服务客户端编程的一个重要方面,尤其是在需要与SOAP(Simple Object Access Protocol)服务交互时。本示例主要介绍如何在JavaScript中使用不同的库和...

    简单WSDL实例

    **简单WSDL实例详解** WSDL,全称为Web Services Description Language,是用于描述Web服务的一种XML格式。它定义了服务的接口,包括服务提供的操作、消息格式、通信协议以及服务的位置。WSDL文件是Web服务客户端和...

    onvif所有 wsdl文件

    WS-Discovery、WS-Profile、WS-Security等是ONVIF协议中的关键部分,其中WS-Device管理和WS-Video等服务使用WSDL(Web Services Description Language)文件来描述其接口和服务。 标题提及的“onvif所有 wsdl文件”...

    Java2WSDL和WSDL2Java操作指南.doc

    Java2WSDL 和 WSDL2Java 操作指南 Java2WSDL 和 WSDL2Java 是两种常用的 Web 服务开发工具,分别用于将 Java 类转换为 WSDL 文件和将 WSDL 文件转换为 Java 代码。在本文中,我们将详细介绍 Java2WSDL 和 WSDL2Java...

    Postman调用wsdl配置说明

    对于Web Service接口,尤其是基于WSDL(Web Services Description Language)的服务,Postman同样提供了强大的支持。本文将详细阐述如何在Postman中配置并调用WSDL接口。 首先,我们需要理解WSDL。WSDL是一种XML...

    wsdl.exe-生成wsdl的代码

    在.NET框架中,`wsdl.exe`工具是一个实用程序,可以帮助开发者从现有代码生成WSDL文档,这个过程被称为“代码到WSDL”的转换。本文将深入探讨`wsdl.exe`的工作原理和使用方法。 1. **什么是WSDL?** WSDL是基于XML...

    使用CXF: Java 2 WSDL

    6. **WSDL的结构与元素**:理解WSDL文件的结构至关重要,其中包括`&lt;wsdl:types&gt;`定义数据类型,`&lt;wsdl:message&gt;`定义通信消息,`&lt;wsdl:portType&gt;`定义服务接口,`&lt;wsdl:binding&gt;`定义通信方式,以及`&lt;wsdl:service&gt;`...

    wsdl生成java代码工具

    在IT行业中,Web服务是应用程序之间进行通信的一种标准方法,而WSDL(Web Services Description Language)则是一种XML格式,用于定义Web服务的具体操作、消息结构、接口和绑定。本篇文章将详细探讨“wsdl生成java...

    wsdl2java命令使用

    **WSDL2Java命令使用详解** 在Web服务开发中,WSDL(Web Service Description Language)是一种XML格式,用于定义服务接口、操作、消息结构等。它使得服务提供者和服务消费者可以进行互操作。Apache Axis是Java平台...

    wsdl4j解析wsdl文件例子代码

    一个用wsdl4j.jar,ws-commons-java5-1.0.1.jar,XmlSchema-1.3.2.jar完全解析wsdl的例子, 本例子原本是xcalia studio中的一个模块,拿来和初次接触的人参考,因为我走了很多弯路,希望别人能少走。

    Java解析wsdl文档获取具体的方法与参数

    在IT行业中,尤其是在Web服务开发领域,WSDL(Web Service Description Language)是一种XML格式的规范,用于定义网络服务的接口。Java作为一种广泛使用的编程语言,提供了处理WSDL文档的能力,帮助开发者获取服务中...

Global site tag (gtag.js) - Google Analytics