|
Hi!
Works under J2SE 1.4.2_06 and Axis
1.2RC3.
I ran the Axis 1.2RC3 version of WSDL2Java against
http://www.ejse.com/WeatherService/Service.asmx?WSDL then
invoked this code:
int nZipCode =
19147; // Zip code for Philadelphia
ServiceLocator locator = new
ServiceLocator();
ServiceSoapStub stub = (ServiceSoapStub)locator.getPort(ServiceSoap.class); GetWeatherInfo parameters = new GetWeatherInfo(nZipCode); GetWeatherInfoResponse response = stub.getWeatherInfo(parameters); com.ejse.WeatherService.WeatherInfo weatherInfoResult = response.getGetWeatherInfoResult(); System.out.println("Location: " +
weatherInfoResult.getLocation());
System.out.println("Icon Index: " + weatherInfoResult.getIconIndex()); System.out.println("Temprature: " + weatherInfoResult.getTemprature()); System.out.println("Feels Like: " + weatherInfoResult.getFeelsLike()); System.out.println("Forecast: " + weatherInfoResult.getForecast()); System.out.println("Visibility: " + weatherInfoResult.getVisibility()); System.out.println("Pressure: " + weatherInfoResult.getPressure()); System.out.println("Dew Point: " + weatherInfoResult.getDewPoint()); System.out.println("UV Index: " + weatherInfoResult.getUVIndex()); System.out.println("Humidity: " + weatherInfoResult.getHumidity()); System.out.println("Wind: " + weatherInfoResult.getWind()); System.out.println("Reported At: " + weatherInfoResult.getReportedAt()); System.out.println("Last Updated: " + weatherInfoResult.getLastUpdated()); and got this output:
Location: Philadelphia, PA
Icon Index: 26 Temprature: 63�F Feels Like: 63�F Forecast: Cloudy Visibility: Pressure: 29.70 in. Dew Point: 53�F UV Index: Humidity: 69% Wind: From WNW at 4 mph Reported At: Last Updated: Jeff
|
- Re: Problem upgrading from Axis 1.1 to Axis 1.2RC3 Davanum Srinivas
- Re: Problem upgrading from Axis 1.1 to Axis 1.2RC3 Jason Carreira
- Fwd: Problem upgrading from Axis 1.1 to Axis 1.2... Jason Carreira
- Re: Problem upgrading from Axis 1.1 to Axis 1.2RC3 Jason Carreira
- Re: Problem upgrading from Axis 1.1 to Axis 1.2R... Davanum Srinivas
- Re: Problem upgrading from Axis 1.1 to Axis ... Jeff
- Re: Problem upgrading from Axis 1.1 to A... Jason Carreira
- Re: Problem upgrading from Axis 1.1 to Axis ... Jason Carreira
- Re: Problem upgrading from Axis 1.1 to Axis 1.2RC3 Jeff
