Skip to content

Instantly share code, notes, and snippets.

@solars
Created September 29, 2011 20:48
Show Gist options
  • Save solars/1251909 to your computer and use it in GitHub Desktop.
Save solars/1251909 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="WeatherService" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="WeatherService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="WeatherService">
<s:import namespace="http://www.w3.org/2001/XMLSchema" />
<s:element name="GetWeatherDataSet">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="cityName" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetWeatherDataSetResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetWeatherDataSetResult">
<s:complexType>
<s:sequence>
<s:element ref="s:schema" />
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetPageString">
<s:complexType />
</s:element>
<s:element name="GetPageStringResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetPageStringResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetWeatherString">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="cityName" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetWeatherStringResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetWeatherStringResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="DataSet" nillable="true">
<s:complexType>
<s:sequence>
<s:element ref="s:schema" />
<s:any />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="string" nillable="true" type="s:string" />
</s:schema>
</wsdl:types>
<wsdl:message name="GetWeatherDataSetSoapIn">
<wsdl:part name="parameters" element="tns:GetWeatherDataSet" />
</wsdl:message>
<wsdl:message name="GetWeatherDataSetSoapOut">
<wsdl:part name="parameters" element="tns:GetWeatherDataSetResponse" />
</wsdl:message>
<wsdl:message name="GetPageStringSoapIn">
<wsdl:part name="parameters" element="tns:GetPageString" />
</wsdl:message>
<wsdl:message name="GetPageStringSoapOut">
<wsdl:part name="parameters" element="tns:GetPageStringResponse" />
</wsdl:message>
<wsdl:message name="GetWeatherStringSoapIn">
<wsdl:part name="parameters" element="tns:GetWeatherString" />
</wsdl:message>
<wsdl:message name="GetWeatherStringSoapOut">
<wsdl:part name="parameters" element="tns:GetWeatherStringResponse" />
</wsdl:message>
<wsdl:message name="GetWeatherDataSetHttpPostIn">
<wsdl:part name="cityName" type="s:string" />
</wsdl:message>
<wsdl:message name="GetWeatherDataSetHttpPostOut">
<wsdl:part name="Body" element="tns:DataSet" />
</wsdl:message>
<wsdl:message name="GetPageStringHttpPostIn" />
<wsdl:message name="GetPageStringHttpPostOut">
<wsdl:part name="Body" element="tns:string" />
</wsdl:message>
<wsdl:message name="GetWeatherStringHttpPostIn">
<wsdl:part name="cityName" type="s:string" />
</wsdl:message>
<wsdl:message name="GetWeatherStringHttpPostOut">
<wsdl:part name="Body" element="tns:string" />
</wsdl:message>
<wsdl:portType name="WeatherSoap">
<wsdl:operation name="GetWeatherDataSet">
<documentation xmlns="http://schemas.xmlsoap.org/wsdl/">天气预报(DataSet)</documentation>
<wsdl:input message="tns:GetWeatherDataSetSoapIn" />
<wsdl:output message="tns:GetWeatherDataSetSoapOut" />
</wsdl:operation>
<wsdl:operation name="GetPageString">
<documentation xmlns="http://schemas.xmlsoap.org/wsdl/">天气预报(WebPage)</documentation>
<wsdl:input message="tns:GetPageStringSoapIn" />
<wsdl:output message="tns:GetPageStringSoapOut" />
</wsdl:operation>
<wsdl:operation name="GetWeatherString">
<documentation xmlns="http://schemas.xmlsoap.org/wsdl/">QQ天气预报(WebPage)</documentation>
<wsdl:input message="tns:GetWeatherStringSoapIn" />
<wsdl:output message="tns:GetWeatherStringSoapOut" />
</wsdl:operation>
</wsdl:portType>
<wsdl:portType name="WeatherHttpPost">
<wsdl:operation name="GetWeatherDataSet">
<documentation xmlns="http://schemas.xmlsoap.org/wsdl/">天气预报(DataSet)</documentation>
<wsdl:input message="tns:GetWeatherDataSetHttpPostIn" />
<wsdl:output message="tns:GetWeatherDataSetHttpPostOut" />
</wsdl:operation>
<wsdl:operation name="GetPageString">
<documentation xmlns="http://schemas.xmlsoap.org/wsdl/">天气预报(WebPage)</documentation>
<wsdl:input message="tns:GetPageStringHttpPostIn" />
<wsdl:output message="tns:GetPageStringHttpPostOut" />
</wsdl:operation>
<wsdl:operation name="GetWeatherString">
<documentation xmlns="http://schemas.xmlsoap.org/wsdl/">QQ天气预报(WebPage)</documentation>
<wsdl:input message="tns:GetWeatherStringHttpPostIn" />
<wsdl:output message="tns:GetWeatherStringHttpPostOut" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="WeatherSoap" type="tns:WeatherSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
<wsdl:operation name="GetWeatherDataSet">
<soap:operation soapAction="WeatherService/GetWeatherDataSet" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetPageString">
<soap:operation soapAction="WeatherService/GetPageString" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetWeatherString">
<soap:operation soapAction="WeatherService/GetWeatherString" 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="WeatherHttpPost" type="tns:WeatherHttpPost">
<http:binding verb="POST" />
<wsdl:operation name="GetWeatherDataSet">
<http:operation location="/GetWeatherDataSet" />
<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="GetPageString">
<http:operation location="/GetPageString" />
<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="GetWeatherString">
<http:operation location="/GetWeatherString" />
<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="Weather">
<documentation xmlns="http://schemas.xmlsoap.org/wsdl/">天气预报WEB服务,目前支持的城市为杭州,嘉兴,舟山,金华,绍兴,宁波,衢州,丽水,台州,温州,全国各省省会,香港,澳门,台北</documentation>
<wsdl:port name="WeatherSoap" binding="tns:WeatherSoap">
<soap:address location="http://www.xview.com.cn/WebService/Weather.asmx" />
</wsdl:port>
<wsdl:port name="WeatherHttpPost" binding="tns:WeatherHttpPost">
<http:address location="http://www.xview.com.cn/WebService/Weather.asmx" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment