<s:element ref= "S:schema"/>
<s:any/>
<s:any minoccurs= "2" maxoccurs= "2"/>
----------------------
Free WebService Interface: http://www.webxml.com.cn/zh_cn/web_services.aspx
WSDL for weather queries
http://ws.webxml.com.cn/WebServices/WeatherWS.asmx?wsdl
view-source:http://ws.webxml.com.cn/webservices/weatherws.asmx?wsdl
WSDL of the number's place of ownership
http://ws.webxml.com.cn/WebServices/MobileCodeWS.asmx?wsdl
1. Generate the client response file under SRC
Available WSDL file, or address generation, cmd Command window locked in SRC directory
2. Client class can view WSDL document last <wsdl:service/> Get
The weather code is as follows (WSDL does not stick)
Packagecom.atguigu.weather_client.test;Importcn.com.webxml.ArrayOfString;ImportCn.com.webxml.WeatherWS;ImportCn.com.webxml.WeatherWSSoap; Public classClienttest { Public Static voidMain (string[] args) {Weatherws Weatherws=NewWeatherws (); Weatherwssoap Weatherwssoap=Weatherws.getweatherwssoap (); Arrayofstring Weather= Weatherwssoap.getweather ("Shanghai",NULL); Java.util.List<String> list =weather.getstring (); SYSTEM.OUT.PRINTLN (list); for(String str:list) {System.out.println (str+"---"); } }}
Operation Result:
[Shanghai, Shanghai, 2013, 2016/11/08 11:56:12, today's weather: temperature: 13 ℃; wind/Wind: Southwest wind 1; Humidity: 66%, UV intensity: weakest. Air quality: good. , UV index: weakest, radiation weak, coated spf8-12 Sunscreen Skin care products. Cold index: Very easy to hair, strong cooling, cold weather, strong wind. Clothing index: Colder, suggest a thick coat and sweater and other apparel. Car Wash Index: Not suitable, rain, rain and mud will stain the car. Sports index: Less suitable, there is precipitation, it is recommended that you indoor leisure sports. Air Pollution Index: good, meteorological conditions conducive to the spread of air pollutants. , November 8 drizzle turned overcast,10℃/13℃, North wind 4-5 level 3-4, 7.gif, 2.gif, November 9 Yin, 9 ℃/13 ℃, North Wind Breeze, 2.gif, 2.gif, November 10 cloudy to clear, 9 ℃/15 ℃, Northwest Wind, 1.gif, 0.gif, November 11 Sunny Turn Cloudy, 12 ℃/18 ℃, Westerly Breeze, 0.gif, 1.gif, November 12 Cloudy, 13 ℃/20 ℃, southerly Breeze, 1.gif, 1. gif] municipalities in Shanghai---Shanghai------2016/11/08 11:56:12---today's weather fact: air temperature:13 ℃; Wind/Wind: Southwest wind 1 level; Humidity: 66%---UV intensity: weakest. Air quality: good. ---UV Index: Weakest, radiation weak, coated SPF8-12 Sunscreen Skin care products. Cold index: Very easy to hair, strong cooling, cold weather, strong wind. Clothing index: Colder, suggest a thick coat and sweater and other apparel. Car Wash Index: Not suitable, rain, rain and mud will stain the car. Sports index: Less suitable, there is precipitation, it is recommended that you indoor leisure sports. Air Pollution Index: good, meteorological conditions conducive to the spread of air pollutants. ---November 8 Rain turn Yin---10℃/13℃---North Wind 4-5-stage to 3-4-stage---7.gif---2.gif---November 9 Cloudy---9℃/13℃---North Wind Breeze---2.gif---2.gif---November 10 Cloudy to Sunny---9℃/15℃---Northwest Wind Breeze---1.gif---0.gif---November 11 Sunny Turn Cloudy---12℃/18℃---Westerly Breeze---0.gif---1.gif---November 12 Cloudy---13℃/20℃---Southerly Breeze---1.gif---1.gif---
The cell phone belongs to the following:
PackageCom.atguigu.phone;ImportCn.com.webxml.MobileCodeWS;ImportCn.com.webxml.MobileCodeWSSoap; Public classClienttest { Public Static voidMain (string[] args) {mobilecodews mobilecodews=Newmobilecodews (); Mobilecodewssoap Mobile=Mobilecodews.getmobilecodewssoap (); String Mobileinfo= Mobile.getmobilecodeinfo ("15295087**",NULL); System.out.println (Mobileinfo); }}
15295087**: Jiangsu Changzhou Jiangsu Mobile Global Pass Card
The service excuse has been tested to hide a number (presumably for security)
07_ compiling weather forecasts and webservice of cell phone attribution