1   package org.controlhaus.xfire.client;
2   
3   import java.io.File;
4   import java.lang.reflect.Method;
5   
6   import net.webservicex.GetWeatherByZipCodeDocument;
7   import net.webservicex.GetWeatherByZipCodeResponseDocument;
8   
9   import org.apache.beehive.controls.api.bean.Control;
10  import org.apache.beehive.controls.api.context.ControlBeanContext;
11  import org.apache.beehive.controls.runtime.bean.ControlContainerContext;
12  import org.apache.xmlbeans.XmlObject;
13  import org.controlhaus.xfire.weather.WeatherForecastClientControl;
14  
15  import junit.framework.TestCase;
16  
17  /***
18   * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
19   * @since Nov 2, 2004
20   */
21  public class WeatherTest 
22      extends AbstractControlTest
23  {
24      @Control WeatherForecastClientControl weather;
25  
26      public void testControl() 
27          throws Exception
28      {
29          assertNotNull(weather);
30          
31          assertTrue(weather instanceof WeatherForecastClientControl);
32          
33          GetWeatherByZipCodeDocument doc = GetWeatherByZipCodeDocument.Factory.newInstance();
34          doc.addNewGetWeatherByZipCode().setZipCode("49506");
35          
36          // It would be great if this service actually worked. It always returns status 500
37          // GetWeatherByZipCodeResponseDocument response = weather.GetWeatherByZipCode( doc );
38      }
39  }