Traditional Culture Encyclopedia - Weather forecast - Weather forecast network service
Weather forecast network service
First, under your web project, you can right-click References and then click Add Web.
Refercenes then enter the address of /WebServices/WeatherWS.asmx after the URl text box, click the green arrow behind it, and then click the Add button. At this point, a namespace will appear under WebReferrecens in the web project, which is a class contained in the web service, and then you add a test button to the page. Write the following code in the button event: cn.com.webxml.webservice.weatherwws = newcn.com.webxml.webservice.weatherws ();
string[]data = wws . getweather(" Shanghai "," ");
The data array is the data about the weather in Shanghai, and then you can do it according to the actual situation.
- Previous article:What are some onomatopoeias for describing heavy rain?
- Next article:Sandstorm reading answer
- Related articles
- Why is it so hot after the rain?
- What are the mild and rainy climate types throughout the year?
- Ten must-see scenic spots in Xinjiang
- Climate difference between Shandong and Guilin
- How to set the oppoa53 weather forecast buoy?
- Recipe for authentic Chaoshan casserole porridge
- How to classify stratiform cloud precipitation?
- How to write the burden that the son-in-law gives to her parents-in-law?
- Lianjiang weather forecast broadcast
- Weibo's words about beginning of winter's blessing.