一个应用程序构建一个消息请求,如“请为我提供关于大西洋NC的天气预报”,并将其发送到Web服务所在的服务器。
An application builds a message request such as "give me the weather forecast for Atlantic, NC," and sends it to the server where the Web service resides.
在这个例子中,您希望创建一个请求SOAP消息,查询一个地区(LAT38.9, LON - 77.01)从2010-07-23开始未来7天以24小时格式显示的天气预报。
In this example, you want to build a request SOAP message that gets a 7 day forecast for a location (LAT38.9, LON-77.01) starting 2010-07-23 with 24 hourly format.
在 weather 方法中,调用 getForecast 方法并请求给定邮政编码地区的天气预报 —— 在本例中,邮政编码是 94587,即 Union City, Calif 的邮政编码。
In the weather method, I invoked the getForecast method and requested the forecast for a given ZIP code -- in my case, 94587, which is Union City, Calif.
应用推荐