FileDocCategorySizeDatePackage
Invoke_Weather.javaAPI DocExample1646Tue Oct 09 11:03:40 BST 2001com.ecerami.wsdl

Invoke_Weather

public class Invoke_Weather extends Object
SOAP Invoker. Uses the XMethodsListingsServiceHelper to invoke SOAP service. All other .java files are automatically generated by GLUE.

Fields Summary
Constructors Summary
Methods Summary
public WeatherSummarygetWeatherSummary(java.lang.String airportCode)
Get Weather Summary via SOAP

    //  Load Java <--> XML Mapping
    Mappings.readMappings("AirportWeather.map");
    //  Invoke Service
    IAirportWeather weather = AirportWeatherHelper.bind();
    WeatherSummary summary = weather.getSummary(airportCode);
    return summary;
  
public static voidmain(java.lang.String[] args)
Main Method

    Invoke_Weather weather = new Invoke_Weather();
    WeatherSummary summary = weather.getWeatherSummary ("KJFK");
    System.out.println ("Weather Summary:");
    System.out.println ("Location:  "+summary.location);
    System.out.println ("Humidiy:  "+summary.humidity);
    System.out.println ("Visibility:  "+summary.visibility);
    System.out.println ("Temperature:  "+summary.temp);