1   package org.codehaus.xfire.xmlbeans;
2   
3   import net.webservicex.GetWeatherByZipCodeDocument;
4   import net.webservicex.GetWeatherByZipCodeResponseDocument;
5   import net.webservicex.WeatherForecasts;
6   
7   /***
8    * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
9    */
10  public class WeatherService
11  {
12      public GetWeatherByZipCodeResponseDocument GetWeatherByZipCode( GetWeatherByZipCodeDocument body )
13      {
14          GetWeatherByZipCodeResponseDocument res =
15              GetWeatherByZipCodeResponseDocument.Factory.newInstance();
16          
17          WeatherForecasts weather = 
18              res.addNewGetWeatherByZipCodeResponse().addNewGetWeatherByZipCodeResult();
19          
20          weather.setLatitude(1);
21          weather.setLongitude(1);
22          weather.setPlaceName("Grand Rapids, MI");
23          
24          return res;
25      }
26  }