CXF generating local WS-Call code test WebService

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.