The above only simulates the communication between the server and the local end, but does not involve the operations to actually obtain information about other websites. Now, we use a case study to learn about weather forecasts and learn this skill.
Originally, you could use myeclipse to automatically generate a client, and then simply call the client. However, during the creation process, the following problem occurs:
Figure 2.3.1 construct a web
Find http://www.webxml.com.cn/zh_cn/index.aspx, there are free to provide the cell phone attribution to the query and weather query WebServices services.The corresponding client class is generated using the Wsimport-keep sei address. You can also save the WSDL document corresponding to the SEI address locally, and then use Wsimport to read the local WSDL document
Call Weather web ServiceI. Create a projectProject Name: weatherclientIi. creating a local WSDL fileFile name: weather.wsdlVisit: HTTP://WWW.WEBSERVICEX.NET/GLOBALWEATHER.ASMX?WSDL will see the file, and then view the source codeSave to Local.Iii. generating code to invoke the server based on a local WSDL fileUsing the
Guidance:Webxml.com.cnWeather forecast web service,Data SourceChina Meteorological AdministrationHttp://www.cma.gov.cn/, data is automatically updated every hours. Including weather forecast data for over 340 major Chinese cities and over 60 major foreign cities within three days.This weather forecast web services should not be used for any commercial purposes. I
1. Use xfire to get the http://www.webservicex.net/globalweather.asmx? The Web Service of the WSDL weather forecast generates the corresponding client program. For detailed steps, see"
Xfire generate client programs based on WSDL"
Http://blog.csdn.net/pengchua/archive/2007/08/02/1722156.aspx2.
Write call
Test. JavaPac
In project development, in addition to the release of WebService to provide customer calls, but also often need to call some customers or third-party webservice services, here is a demo to demonstrate the call of a third-party weather service.1. Weather Forecast Service Interface Description:Here's an example of http:/
Reprint Please indicate this article from Big Corn's blog (http://blog.csdn.net/a396901990 ), thank you for your support! Opening nonsense:This project is prepared in four parts:One: Create rotatable "3D ball ":3D Voice Weather ball (source sharing)-- Create rotatable 3D ball second: Through the weather Service, from the network to obtain real
Weather forecast is a very useful service. If you can integrate the weather forecast on your website, you can query it easily.
I searched all the meteorological sites in China and did not find any web service. I was too stingy to go abroad. NOAA (Www.weather.gov) Provides a Web ser
Environment: Visual Studio 2010 C #1. Create a project --> Windows Forms Application. Enter the solution name, which is assumed to be TTS. 2. Design a textBox and a Button on the interface. TextBox1 is used to hold text information. Click button1 to trigger the event to obtain the weather forecast and read it aloud. 3. In Solution Explorer, right-click solution TTS and choose add service reference. The foll
This code does not involve any back-end development code (such as. Net,java, etc.). The most authoritative weather forecast is the Chinese Weather Network (http://www.weather.com.cn/), because this is the official meteorological data, in addition to commercial value-added services, but also provides a free JSON data format to return the weather data to view the
We can use the CLR to get the network service to display the result set of the database custom function, such as 163 weather forecastHttp://news.163.com/xml/weather.xmlHis date for this XML result is incorrect, but we are not discussing it.the CLR code to get the weather from this XML is as follows, with WebClient access to it. The node property is then traversed
If you read this document and want to use the latest weather service, goWww.blogweather.net/weatherhelper.aspxGet your own weather forecast style. Thank you.Recently found QQ provided to the use of blog Weather Forecast (http://appnews.qq.com/cgi-bin/news_qq_search? City = Shanghai) if it is always bad, you can write o
Today, Mr. Liu spoke about Web Services. The instructor talked about the ability to search for available web services through UDDI. I went home for a try and found that I could not find the UDDI service that I could use ...... Both Microsoft and IBM are unavailable. The ibm uddi page jumps directly to the SOA introduction page.
Fortunately, I finally found a web service that provides the
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.