【1】获取wsdl

这里获取的时免费webservice接口–城市天气。

http://ws.webxml.com.cn/WebServices/WeatherWS.asmx?wsdl

<?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://WebXml.com.cn/" 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://WebXml.com.cn/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"><wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">&lt;a href="http://www.webxml.com.cn/" target="_blank"&gt;WebXml.com.cn&lt;/a&gt; &lt;strong&gt;2400多个城市天气预报Web服务&lt;/strong&gt;,包含2300个以上中国城市和100个以上国外城市天气预报数据。数据每2.5小时左右自动更新一次,准确可靠。&lt;br /&gt;使用本站 WEB 服务请注明或链接本站:&lt;a href="http://www.webxml.com.cn/" target="_blank"&gt;http://www.webxml.com.cn/&lt;/a&gt; 感谢大家的支持!&lt;br /&gt;&lt;br /&gt;&lt;img alt="PDF" title="PDF file" src="http://www.webxml.com.cn/images/icon/pdf.gif" style="vertical-align: middle;" /&gt; &lt;a href="http://www.webxml.com.cn/files/WeatherWsHelp.pdf" target="_blank"&gt;接口帮助文档&lt;/a&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img alt="ZIP" title="ZIP file" src="http://www.webxml.com.cn/images/icon/zip.gif" style="vertical-align: middle;" /&gt; &lt;a href="http://www.webxml.com.cn/files/about_city.zip"&gt;部分城市介绍和气候背景&lt;/a&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img alt="ZIP" title="ZIP file" src="http://www.webxml.com.cn/images/icon/zip.gif" style="vertical-align: middle;" /&gt; &lt;a href="http://www.webxml.com.cn/files/city_photo.zip"&gt;部分城市图片&lt;/a&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img alt="HTML" title="HTML file" src="http://www.webxml.com.cn/images/icon/html.gif" style="vertical-align: middle;" /&gt; &lt;a href="http://www.webxml.com.cn/zh_cn/weather_icon.aspx" target="_blank"&gt;天气现象和图例&lt;/a&gt;&lt;br /&gt;&amp;nbsp;</wsdl:documentation><wsdl:types><s:schema elementFormDefault="qualified" targetNamespace="http://WebXml.com.cn/"><s:element name="getRegionDataset"><s:complexType /></s:element><s:element name="getRegionDatasetResponse"><s:complexType><s:sequence><s:element minOccurs="0" maxOccurs="1" name="getRegionDatasetResult"><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="getRegionProvince"><s:complexType /></s:element><s:element name="getRegionProvinceResponse"><s:complexType><s:sequence><s:element minOccurs="0" maxOccurs="1" name="getRegionProvinceResult" type="tns:ArrayOfString" /></s:sequence></s:complexType></s:element><s:complexType name="ArrayOfString"><s:sequence><s:element minOccurs="0" maxOccurs="unbounded" name="string" nillable="true" type="s:string" /></s:sequence></s:complexType><s:element name="getRegionCountry"><s:complexType /></s:element><s:element name="getRegionCountryResponse"><s:complexType><s:sequence><s:element minOccurs="0" maxOccurs="1" name="getRegionCountryResult" type="tns:ArrayOfString" /></s:sequence></s:complexType></s:element><s:element name="getSupportCityDataset"><s:complexType><s:sequence><s:element minOccurs="0" maxOccurs="1" name="theRegionCode" type="s:string" /></s:sequence></s:complexType></s:element><s:element name="getSupportCityDatasetResponse"><s:complexType><s:sequence><s:element minOccurs="0" maxOccurs="1" name="getSupportCityDatasetResult"><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="getSupportCityString"><s:complexType><s:sequence><s:element minOccurs="0" maxOccurs="1" name="theRegionCode" type="s:string" /></s:sequence></s:complexType></s:element><s:element name="getSupportCityStringResponse"><s:complexType><s:sequence><s:element minOccurs="0" maxOccurs="1" name="getSupportCityStringResult" type="tns:ArrayOfString" /></s:sequence></s:complexType></s:element><s:element name="getWeather"><s:complexType><s:sequence><s:element minOccurs="0" maxOccurs="1" name="theCityCode" type="s:string" /><s:element minOccurs="0" maxOccurs="1" name="theUserID" 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="tns:ArrayOfString" /></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="ArrayOfString" nillable="true" type="tns:ArrayOfString" /></s:schema></wsdl:types><wsdl:message name="getRegionDatasetSoapIn"><wsdl:part name="parameters" element="tns:getRegionDataset" /></wsdl:message><wsdl:message name="getRegionDatasetSoapOut"><wsdl:part name="parameters" element="tns:getRegionDatasetResponse" /></wsdl:message><wsdl:message name="getRegionProvinceSoapIn"><wsdl:part name="parameters" element="tns:getRegionProvince" /></wsdl:message><wsdl:message name="getRegionProvinceSoapOut"><wsdl:part name="parameters" element="tns:getRegionProvinceResponse" /></wsdl:message><wsdl:message name="getRegionCountrySoapIn"><wsdl:part name="parameters" element="tns:getRegionCountry" /></wsdl:message><wsdl:message name="getRegionCountrySoapOut"><wsdl:part name="parameters" element="tns:getRegionCountryResponse" /></wsdl:message><wsdl:message name="getSupportCityDatasetSoapIn"><wsdl:part name="parameters" element="tns:getSupportCityDataset" /></wsdl:message><wsdl:message name="getSupportCityDatasetSoapOut"><wsdl:part name="parameters" element="tns:getSupportCityDatasetResponse" /></wsdl:message><wsdl:message name="getSupportCityStringSoapIn"><wsdl:part name="parameters" element="tns:getSupportCityString" /></wsdl:message><wsdl:message name="getSupportCityStringSoapOut"><wsdl:part name="parameters" element="tns:getSupportCityStringResponse" /></wsdl:message><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="getRegionDatasetHttpGetIn" /><wsdl:message name="getRegionDatasetHttpGetOut"><wsdl:part name="Body" element="tns:DataSet" /></wsdl:message><wsdl:message name="getRegionProvinceHttpGetIn" /><wsdl:message name="getRegionProvinceHttpGetOut"><wsdl:part name="Body" element="tns:ArrayOfString" /></wsdl:message><wsdl:message name="getRegionCountryHttpGetIn" /><wsdl:message name="getRegionCountryHttpGetOut"><wsdl:part name="Body" element="tns:ArrayOfString" /></wsdl:message><wsdl:message name="getSupportCityDatasetHttpGetIn"><wsdl:part name="theRegionCode" type="s:string" /></wsdl:message><wsdl:message name="getSupportCityDatasetHttpGetOut"><wsdl:part name="Body" element="tns:DataSet" /></wsdl:message><wsdl:message name="getSupportCityStringHttpGetIn"><wsdl:part name="theRegionCode" type="s:string" /></wsdl:message><wsdl:message name="getSupportCityStringHttpGetOut"><wsdl:part name="Body" element="tns:ArrayOfString" /></wsdl:message><wsdl:message name="getWeatherHttpGetIn"><wsdl:part name="theCityCode" type="s:string" /><wsdl:part name="theUserID" type="s:string" /></wsdl:message><wsdl:message name="getWeatherHttpGetOut"><wsdl:part name="Body" element="tns:ArrayOfString" /></wsdl:message><wsdl:message name="getRegionDatasetHttpPostIn" /><wsdl:message name="getRegionDatasetHttpPostOut"><wsdl:part name="Body" element="tns:DataSet" /></wsdl:message><wsdl:message name="getRegionProvinceHttpPostIn" /><wsdl:message name="getRegionProvinceHttpPostOut"><wsdl:part name="Body" element="tns:ArrayOfString" /></wsdl:message><wsdl:message name="getRegionCountryHttpPostIn" /><wsdl:message name="getRegionCountryHttpPostOut"><wsdl:part name="Body" element="tns:ArrayOfString" /></wsdl:message><wsdl:message name="getSupportCityDatasetHttpPostIn"><wsdl:part name="theRegionCode" type="s:string" /></wsdl:message><wsdl:message name="getSupportCityDatasetHttpPostOut"><wsdl:part name="Body" element="tns:DataSet" /></wsdl:message><wsdl:message name="getSupportCityStringHttpPostIn"><wsdl:part name="theRegionCode" type="s:string" /></wsdl:message><wsdl:message name="getSupportCityStringHttpPostOut"><wsdl:part name="Body" element="tns:ArrayOfString" /></wsdl:message><wsdl:message name="getWeatherHttpPostIn"><wsdl:part name="theCityCode" type="s:string" /><wsdl:part name="theUserID" type="s:string" /></wsdl:message><wsdl:message name="getWeatherHttpPostOut"><wsdl:part name="Body" element="tns:ArrayOfString" /></wsdl:message><wsdl:portType name="WeatherWSSoap"><wsdl:operation name="getRegionDataset"><wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">&lt;br /&gt;&lt;h3&gt;获得中国省份、直辖市、地区;国家名称(国外)和与之对应的ID&lt;/h3&gt;&lt;p&gt;输入参数:无,返回数据:DataSet。&lt;/p&gt;&lt;br /&gt;</wsdl:documentation><wsdl:input message="tns:getRegionDatasetSoapIn" /><wsdl:output message="tns:getRegionDatasetSoapOut" /></wsdl:operation><wsdl:operation name="getRegionProvince"><wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">&lt;br /&gt;&lt;h3&gt;获得中国省份、直辖市、地区和与之对应的ID&lt;/h3&gt;&lt;p&gt;输入参数:无,返回数据:一维字符串数组。&lt;/p&gt;&lt;br /&gt;</wsdl:documentation><wsdl:input message="tns:getRegionProvinceSoapIn" /><wsdl:output message="tns:getRegionProvinceSoapOut" /></wsdl:operation><wsdl:operation name="getRegionCountry"><wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">&lt;br /&gt;&lt;h3&gt;获得国外国家名称和与之对应的ID&lt;/h3&gt;&lt;p&gt;输入参数:无,返回数据:一维字符串数组。&lt;/p&gt;&lt;br /&gt;</wsdl:documentation><wsdl:input message="tns:getRegionCountrySoapIn" /><wsdl:output message="tns:getRegionCountrySoapOut" /></wsdl:operation><wsdl:operation name="getSupportCityDataset"><wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">&lt;br /&gt;&lt;h3&gt;获得支持的城市/地区名称和与之对应的ID&lt;/h3&gt;&lt;p&gt;输入参数:theRegionCode = 省市、国家ID或名称,返回数据:DataSet。&lt;/p&gt;&lt;br /&gt;</wsdl:documentation><wsdl:input message="tns:getSupportCityDatasetSoapIn" /><wsdl:output message="tns:getSupportCityDatasetSoapOut" /></wsdl:operation><wsdl:operation name="getSupportCityString"><wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">&lt;br /&gt;&lt;h3&gt;获得支持的城市/地区名称和与之对应的ID&lt;/h3&gt;&lt;p&gt;输入参数:theRegionCode = 省市、国家ID或名称,返回数据:一维字符串数组。&lt;/p&gt;&lt;br /&gt;</wsdl:documentation><wsdl:input message="tns:getSupportCityStringSoapIn" /><wsdl:output message="tns:getSupportCityStringSoapOut" /></wsdl:operation><wsdl:operation name="getWeather"><wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">&lt;br /&gt;&lt;h3&gt;获得天气预报数据&lt;/h3&gt;&lt;p&gt;输入参数:城市/地区ID或名称,返回数据:一维字符串数组。&lt;/p&gt;&lt;br /&gt;</wsdl:documentation><wsdl:input message="tns:getWeatherSoapIn" /><wsdl:output message="tns:getWeatherSoapOut" /></wsdl:operation></wsdl:portType><wsdl:portType name="WeatherWSHttpGet"><wsdl:operation name="getRegionDataset"><wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">&lt;br /&gt;&lt;h3&gt;获得中国省份、直辖市、地区;国家名称(国外)和与之对应的ID&lt;/h3&gt;&lt;p&gt;输入参数:无,返回数据:DataSet。&lt;/p&gt;&lt;br /&gt;</wsdl:documentation><wsdl:input message="tns:getRegionDatasetHttpGetIn" /><wsdl:output message="tns:getRegionDatasetHttpGetOut" /></wsdl:operation><wsdl:operation name="getRegionProvince"><wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">&lt;br /&gt;&lt;h3&gt;获得中国省份、直辖市、地区和与之对应的ID&lt;/h3&gt;&lt;p&gt;输入参数:无,返回数据:一维字符串数组。&lt;/p&gt;&lt;br /&gt;</wsdl:documentation><wsdl:input message="tns:getRegionProvinceHttpGetIn" /><wsdl:output message="tns:getRegionProvinceHttpGetOut" /></wsdl:operation><wsdl:operation name="getRegionCountry"><wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">&lt;br /&gt;&lt;h3&gt;获得国外国家名称和与之对应的ID&lt;/h3&gt;&lt;p&gt;输入参数:无,返回数据:一维字符串数组。&lt;/p&gt;&lt;br /&gt;</wsdl:documentation><wsdl:input message="tns:getRegionCountryHttpGetIn" /><wsdl:output message="tns:getRegionCountryHttpGetOut" /></wsdl:operation><wsdl:operation name="getSupportCityDataset"><wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">&lt;br /&gt;&lt;h3&gt;获得支持的城市/地区名称和与之对应的ID&lt;/h3&gt;&lt;p&gt;输入参数:theRegionCode = 省市、国家ID或名称,返回数据:DataSet。&lt;/p&gt;&lt;br /&gt;</wsdl:documentation><wsdl:input message="tns:getSupportCityDatasetHttpGetIn" /><wsdl:output message="tns:getSupportCityDatasetHttpGetOut" /></wsdl:operation><wsdl:operation name="getSupportCityString"><wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">&lt;br /&gt;&lt;h3&gt;获得支持的城市/地区名称和与之对应的ID&lt;/h3&gt;&lt;p&gt;输入参数:theRegionCode = 省市、国家ID或名称,返回数据:一维字符串数组。&lt;/p&gt;&lt;br /&gt;</wsdl:documentation><wsdl:input message="tns:getSupportCityStringHttpGetIn" /><wsdl:output message="tns:getSupportCityStringHttpGetOut" /></wsdl:operation><wsdl:operation name="getWeather"><wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">&lt;br /&gt;&lt;h3&gt;获得天气预报数据&lt;/h3&gt;&lt;p&gt;输入参数:城市/地区ID或名称,返回数据:一维字符串数组。&lt;/p&gt;&lt;br /&gt;</wsdl:documentation><wsdl:input message="tns:getWeatherHttpGetIn" /><wsdl:output message="tns:getWeatherHttpGetOut" /></wsdl:operation></wsdl:portType><wsdl:portType name="WeatherWSHttpPost"><wsdl:operation name="getRegionDataset"><wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">&lt;br /&gt;&lt;h3&gt;获得中国省份、直辖市、地区;国家名称(国外)和与之对应的ID&lt;/h3&gt;&lt;p&gt;输入参数:无,返回数据:DataSet。&lt;/p&gt;&lt;br /&gt;</wsdl:documentation><wsdl:input message="tns:getRegionDatasetHttpPostIn" /><wsdl:output message="tns:getRegionDatasetHttpPostOut" /></wsdl:operation><wsdl:operation name="getRegionProvince"><wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">&lt;br /&gt;&lt;h3&gt;获得中国省份、直辖市、地区和与之对应的ID&lt;/h3&gt;&lt;p&gt;输入参数:无,返回数据:一维字符串数组。&lt;/p&gt;&lt;br /&gt;</wsdl:documentation><wsdl:input message="tns:getRegionProvinceHttpPostIn" /><wsdl:output message="tns:getRegionProvinceHttpPostOut" /></wsdl:operation><wsdl:operation name="getRegionCountry"><wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">&lt;br /&gt;&lt;h3&gt;获得国外国家名称和与之对应的ID&lt;/h3&gt;&lt;p&gt;输入参数:无,返回数据:一维字符串数组。&lt;/p&gt;&lt;br /&gt;</wsdl:documentation><wsdl:input message="tns:getRegionCountryHttpPostIn" /><wsdl:output message="tns:getRegionCountryHttpPostOut" /></wsdl:operation><wsdl:operation name="getSupportCityDataset"><wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">&lt;br /&gt;&lt;h3&gt;获得支持的城市/地区名称和与之对应的ID&lt;/h3&gt;&lt;p&gt;输入参数:theRegionCode = 省市、国家ID或名称,返回数据:DataSet。&lt;/p&gt;&lt;br /&gt;</wsdl:documentation><wsdl:input message="tns:getSupportCityDatasetHttpPostIn" /><wsdl:output message="tns:getSupportCityDatasetHttpPostOut" /></wsdl:operation><wsdl:operation name="getSupportCityString"><wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">&lt;br /&gt;&lt;h3&gt;获得支持的城市/地区名称和与之对应的ID&lt;/h3&gt;&lt;p&gt;输入参数:theRegionCode = 省市、国家ID或名称,返回数据:一维字符串数组。&lt;/p&gt;&lt;br /&gt;</wsdl:documentation><wsdl:input message="tns:getSupportCityStringHttpPostIn" /><wsdl:output message="tns:getSupportCityStringHttpPostOut" /></wsdl:operation><wsdl:operation name="getWeather"><wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">&lt;br /&gt;&lt;h3&gt;获得天气预报数据&lt;/h3&gt;&lt;p&gt;输入参数:城市/地区ID或名称,返回数据:一维字符串数组。&lt;/p&gt;&lt;br /&gt;</wsdl:documentation><wsdl:input message="tns:getWeatherHttpPostIn" /><wsdl:output message="tns:getWeatherHttpPostOut" /></wsdl:operation></wsdl:portType><wsdl:binding name="WeatherWSSoap" type="tns:WeatherWSSoap"><soap:binding transport="http://schemas.xmlsoap.org/soap/http" /><wsdl:operation name="getRegionDataset"><soap:operation soapAction="http://WebXml.com.cn/getRegionDataset" style="document" /><wsdl:input><soap:body use="literal" /></wsdl:input><wsdl:output><soap:body use="literal" /></wsdl:output></wsdl:operation><wsdl:operation name="getRegionProvince"><soap:operation soapAction="http://WebXml.com.cn/getRegionProvince" style="document" /><wsdl:input><soap:body use="literal" /></wsdl:input><wsdl:output><soap:body use="literal" /></wsdl:output></wsdl:operation><wsdl:operation name="getRegionCountry"><soap:operation soapAction="http://WebXml.com.cn/getRegionCountry" style="document" /><wsdl:input><soap:body use="literal" /></wsdl:input><wsdl:output><soap:body use="literal" /></wsdl:output></wsdl:operation><wsdl:operation name="getSupportCityDataset"><soap:operation soapAction="http://WebXml.com.cn/getSupportCityDataset" style="document" /><wsdl:input><soap:body use="literal" /></wsdl:input><wsdl:output><soap:body use="literal" /></wsdl:output></wsdl:operation><wsdl:operation name="getSupportCityString"><soap:operation soapAction="http://WebXml.com.cn/getSupportCityString" style="document" /><wsdl:input><soap:body use="literal" /></wsdl:input><wsdl:output><soap:body use="literal" /></wsdl:output></wsdl:operation><wsdl:operation name="getWeather"><soap:operation soapAction="http://WebXml.com.cn/getWeather" 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="WeatherWSSoap12" type="tns:WeatherWSSoap"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http" /><wsdl:operation name="getRegionDataset"><soap12:operation soapAction="http://WebXml.com.cn/getRegionDataset" style="document" /><wsdl:input><soap12:body use="literal" /></wsdl:input><wsdl:output><soap12:body use="literal" /></wsdl:output></wsdl:operation><wsdl:operation name="getRegionProvince"><soap12:operation soapAction="http://WebXml.com.cn/getRegionProvince" style="document" /><wsdl:input><soap12:body use="literal" /></wsdl:input><wsdl:output><soap12:body use="literal" /></wsdl:output></wsdl:operation><wsdl:operation name="getRegionCountry"><soap12:operation soapAction="http://WebXml.com.cn/getRegionCountry" style="document" /><wsdl:input><soap12:body use="literal" /></wsdl:input><wsdl:output><soap12:body use="literal" /></wsdl:output></wsdl:operation><wsdl:operation name="getSupportCityDataset"><soap12:operation soapAction="http://WebXml.com.cn/getSupportCityDataset" style="document" /><wsdl:input><soap12:body use="literal" /></wsdl:input><wsdl:output><soap12:body use="literal" /></wsdl:output></wsdl:operation><wsdl:operation name="getSupportCityString"><soap12:operation soapAction="http://WebXml.com.cn/getSupportCityString" style="document" /><wsdl:input><soap12:body use="literal" /></wsdl:input><wsdl:output><soap12:body use="literal" /></wsdl:output></wsdl:operation><wsdl:operation name="getWeather"><soap12:operation soapAction="http://WebXml.com.cn/getWeather" 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="WeatherWSHttpGet" type="tns:WeatherWSHttpGet"><http:binding verb="GET" /><wsdl:operation name="getRegionDataset"><http:operation location="/getRegionDataset" /><wsdl:input><http:urlEncoded /></wsdl:input><wsdl:output><mime:mimeXml part="Body" /></wsdl:output></wsdl:operation><wsdl:operation name="getRegionProvince"><http:operation location="/getRegionProvince" /><wsdl:input><http:urlEncoded /></wsdl:input><wsdl:output><mime:mimeXml part="Body" /></wsdl:output></wsdl:operation><wsdl:operation name="getRegionCountry"><http:operation location="/getRegionCountry" /><wsdl:input><http:urlEncoded /></wsdl:input><wsdl:output><mime:mimeXml part="Body" /></wsdl:output></wsdl:operation><wsdl:operation name="getSupportCityDataset"><http:operation location="/getSupportCityDataset" /><wsdl:input><http:urlEncoded /></wsdl:input><wsdl:output><mime:mimeXml part="Body" /></wsdl:output></wsdl:operation><wsdl:operation name="getSupportCityString"><http:operation location="/getSupportCityString" /><wsdl:input><http:urlEncoded /></wsdl:input><wsdl:output><mime:mimeXml part="Body" /></wsdl:output></wsdl:operation><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:binding><wsdl:binding name="WeatherWSHttpPost" type="tns:WeatherWSHttpPost"><http:binding verb="POST" /><wsdl:operation name="getRegionDataset"><http:operation location="/getRegionDataset" /><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="getRegionProvince"><http:operation location="/getRegionProvince" /><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="getRegionCountry"><http:operation location="/getRegionCountry" /><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="getSupportCityDataset"><http:operation location="/getSupportCityDataset" /><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="getSupportCityString"><http:operation location="/getSupportCityString" /><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="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:binding><wsdl:service name="WeatherWS"><wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">&lt;a href="http://www.webxml.com.cn/" target="_blank"&gt;WebXml.com.cn&lt;/a&gt; &lt;strong&gt;2400多个城市天气预报Web服务&lt;/strong&gt;,包含2300个以上中国城市和100个以上国外城市天气预报数据。数据每2.5小时左右自动更新一次,准确可靠。&lt;br /&gt;使用本站 WEB 服务请注明或链接本站:&lt;a href="http://www.webxml.com.cn/" target="_blank"&gt;http://www.webxml.com.cn/&lt;/a&gt; 感谢大家的支持!&lt;br /&gt;&lt;br /&gt;&lt;img alt="PDF" title="PDF file" src="http://www.webxml.com.cn/images/icon/pdf.gif" style="vertical-align: middle;" /&gt; &lt;a href="http://www.webxml.com.cn/files/WeatherWsHelp.pdf" target="_blank"&gt;接口帮助文档&lt;/a&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img alt="ZIP" title="ZIP file" src="http://www.webxml.com.cn/images/icon/zip.gif" style="vertical-align: middle;" /&gt; &lt;a href="http://www.webxml.com.cn/files/about_city.zip"&gt;部分城市介绍和气候背景&lt;/a&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img alt="ZIP" title="ZIP file" src="http://www.webxml.com.cn/images/icon/zip.gif" style="vertical-align: middle;" /&gt; &lt;a href="http://www.webxml.com.cn/files/city_photo.zip"&gt;部分城市图片&lt;/a&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img alt="HTML" title="HTML file" src="http://www.webxml.com.cn/images/icon/html.gif" style="vertical-align: middle;" /&gt; &lt;a href="http://www.webxml.com.cn/zh_cn/weather_icon.aspx" target="_blank"&gt;天气现象和图例&lt;/a&gt;&lt;br /&gt;&amp;nbsp;</wsdl:documentation><wsdl:port name="WeatherWSSoap" binding="tns:WeatherWSSoap"><soap:address location="http://ws.webxml.com.cn/WebServices/WeatherWS.asmx" /></wsdl:port><wsdl:port name="WeatherWSSoap12" binding="tns:WeatherWSSoap12"><soap12:address location="http://ws.webxml.com.cn/WebServices/WeatherWS.asmx" /></wsdl:port><wsdl:port name="WeatherWSHttpGet" binding="tns:WeatherWSHttpGet"><http:address location="http://ws.webxml.com.cn/WebServices/WeatherWS.asmx" /></wsdl:port><wsdl:port name="WeatherWSHttpPost" binding="tns:WeatherWSHttpPost"><http:address location="http://ws.webxml.com.cn/WebServices/WeatherWS.asmx" /></wsdl:port></wsdl:service>
</wsdl:definitions>

【2】eclipse提示报错


【3】解决办法

将<s:element ref="s:schema" /> <s:any />全部替换为
<s:any minOccurs="2" maxOccurs="2" />

WebService - WSDL报错 s:element ref=s:schema /s:any /相关推荐

  1. 关于报错stale element reference: element is not attach

    1.现象 在执行脚本时,有时候引用一些元素对象会抛出如下异常 org.openqa.selenium.StaleElementReferenceException: stale element ref ...

  2. vue异常报错解决 Missing ref owner context. ref cannot be used on hois 或者是 Cannot read property ‘refs‘ of n

    本地环境报错:[Vue warn]: Missing ref owner context. ref cannot be used on hoisted vnodes. 一部署到生产环境就报错这个:Ca ...

  3. 2021-08-03 git pull 报错 cannot lock ref

    git pull 报错:error: cannot lock ref 'refs/remotes/origin/release/xxx': 'refs/remotes/origin/release' ...

  4. Selenium测试报错 Other element would receive the click 问题

    今天帮别人写一个自动化测试脚本,需求如下: 他这个网页一共是15条选择题,5道填空题.我的思路是先获取所有单选框input元素,再使用click方法选择它,填空题则类似地调用sendKeys方法填充内 ...

  5. restful风格webservice wadl报错

    最近在项目中整合webservice接口时发现方法可以正常调用,但请求wadl总是报错,以下是报错信息: [org.apache.cxf.phase.PhaseInterceptorChain] - ...

  6. dio 上传文件报错_Vue+Element UI实现断点续传、分片上传、秒传

    作者:Pseudo 转发链接:https://segmentfault.com/a/1190000023434864 凡是要知其然知其所以然 文件上传相信很多朋友都有遇到过,那或许你也遇到过当上传大文 ...

  7. Java调用net的Webservice时提示:undefined element declaration 's:schema'

    场景 Java中调用net的天气的Webservice接口生成代码时提示: undefined element declaration 's:schema' 实现 在接口网页上右击另存为本地的wsdl ...

  8. dbz用connector入hana报错Invalid Java object for schema type INT64: class java.util.Long for field “null“

    最近需要将用户的mysql数据实时导入到hana中. 方案一为:mysql-cdc---->debezium-source-connector---->kafka----->debe ...

  9. 凌凯短信Webservice接口报错解决办法

    首先,客户给你的二次开发接口文档只需要注意看一个地方,那就是前言中的文档出处,直接去官网上下载最新的接口说明 文档中第一个接口如下: http://mb345.com:999/ws/LinkWS.as ...

最新文章

  1. 【cs229-Lecture2】Linear Regression with One Variable (Week 1)(含测试数据和源码)
  2. CentOS 7.0,启用iptables防火墙
  3. hadoop 爬虫_hadoop学习笔记
  4. 谷歌出品EfficientNet:比现有卷积网络小84倍,比GPipe快6.1倍
  5. Destination Host Unreachable问题记录
  6. IntelliJ IDEA for Mac工件包(artifact)中 Web facet resources 的模块名称有误,如何修改?
  7. 111邮箱服务器设置,如何设置Outlook邮箱帐号
  8. 计算图片相似度的方法
  9. bzoj4417 [Shoi2013]超级跳马 矩乘
  10. (37)VHDL实现RS触发器
  11. JSP — 知识总结篇《I》【基础语法】
  12. vue实现滑块滑动校验
  13. vant中picker选择器
  14. 程序员那些你不知道的事:高收入程序员年薪高于50万,近四成程序员单身
  15. “3.15”曝光的人脸识别摄像头,错在用错了场所
  16. @keyup.enter事件
  17. Windows Thin PC x86 正式版下载、安装、汉化 等
  18. 三万块钱6天的区块链培训,我学会了搭建区块链系统框架?
  19. 浪涌-雷击浪涌的防护
  20. docker 雷电模拟器

热门文章

  1. 简易掉电触发电路的试验
  2. 30_Vuex的替代工具Pinia的使用
  3. 计算机毕业设计SSM菜鸟驿站快递分发系统【附源码数据库】
  4. java 加背景颜色_Java 给Word文档添加背景颜色
  5. oracle sqltune,DBMS_SQLTUNE
  6. java 写数据到pdf模板_java利用itext填写pdf模板并导出
  7. 线上宣讲会|香港科大MPhil PhD课程入学资讯
  8. 在机器人行业的专业人士眼里,机器人行业目前的情况如何?
  9. 【Amba系列】之安霸新推出的计算机视觉芯片CV22简介
  10. React Native 指定模拟器手机型号 --simulator