Package com.free.webservice.client;import java.util.list;import cn.com.webxml.*; Public classweatherwsclient { Public Static voidMain (string[] args) {/** * Use CXF to invoke client*/WEATHERWS ws=NewWeatherws ();//Weatherws port = ws.getport (Weatherws.class);//Port.getWeatherwssoap port = Ws.getport (Weatherwssoap.class); Arrayofstring Weather= Port.getweather ("Hefei",NULL); List<String>string=weather.getstring (); for(String str:string) {System. out. println (str); } }}
Hefei, Anhui
Hefei
1977
2015/11/12 09:30:38
Today's weather: temperature: 11 ℃; Wind/Wind: 2 levels in the northeast; Humidity: 97%
Air quality: No, UV intensity: weakest
Sunglasses index: Required. Sunglasses are worn during the day, depending on outdoor light conditions.
Clothing index: Cooler. Suggest a thick coat and sweater and other clothing.
Tourism index: suitable. The wind is slightly larger, but you can still enjoy the natural scenery.
Movement Index: more suitable. Indoor sports are recommended.
Car Wash Index: more appropriate. No rain and less wind, easy to maintain cleanliness.
Makeup index: Moisturizing. Please choose the moisturizing cream type cosmetics.
Cold index: more prone to hair. Days cooler, increase clothing, pay attention to protection.
Air Pollution index: not currently.
UV index: Weakest. Radiation is weak, rub spf8-12 sunscreen skin care products.
Comfort Index: more comfortable. Sunny day, morning and evening cold, afternoon comfortable.
November 11 Cloudy
11℃/14℃
Dongfeng to northeast 3-4 Grade
1.gif
2.gif
November 12 Cloudy
12℃/14℃
The north winds turn to the wind
1.gif
1.gif
November 13 Overcast Turn Cloudy
10℃/16℃
Northwest wind to the westerly breeze
2.gif
1.gif
November 14 Sunny Turn Cloudy
10℃/19℃
North Wind Breeze
0.gif
1.gif
November 15 Cloudy
11℃/17℃
East winds turn to wind breeze
1.gif
1.gif
CXF generating local WS-Call code test WebService