1
2
3
4
5
6
7
8
9
10
11 package org.mule.cxf.weatherservice.myweather;
12
13 import java.io.File;
14 import java.net.MalformedURLException;
15 import java.net.URL;
16
17 import javax.xml.namespace.QName;
18
19 public final class WeatherHttpGet_WeatherHttpGet_Client {
20
21 private static final QName SERVICE_NAME = new QName("http://ws.cdyne.com/WeatherWS/", "Weather");
22
23 public static void main(String args[]) throws Exception {
24 URL wsdlURL = Weather.WSDL_LOCATION;
25 if (args.length > 0) {
26 File wsdlFile = new File(args[0]);
27 try {
28 if (wsdlFile.exists()) {
29 wsdlURL = wsdlFile.toURI().toURL();
30 } else {
31 wsdlURL = new URL(args[0]);
32 }
33 } catch (MalformedURLException e) {
34 e.printStackTrace();
35 }
36 }
37
38 Weather ss = new Weather(wsdlURL, SERVICE_NAME);
39 WeatherHttpGet port = ss.getWeatherHttpGet();
40
41 {
42 System.out.println("Invoking getCityWeatherByZIP...");
43 String _getCityWeatherByZIP_zip = "";
44 WeatherReturn _getCityWeatherByZIP__return = port.getCityWeatherByZIP(_getCityWeatherByZIP_zip);
45 System.out.println("getCityWeatherByZIP.result=" + _getCityWeatherByZIP__return);
46
47
48 }
49 {
50 System.out.println("Invoking getWeatherInformation...");
51 ArrayOfWeatherDescription _getWeatherInformation__return = port.getWeatherInformation();
52 System.out.println("getWeatherInformation.result=" + _getWeatherInformation__return);
53
54
55 }
56 {
57 System.out.println("Invoking getCityForecastByZIP...");
58 String _getCityForecastByZIP_zip = "";
59 ForecastReturn _getCityForecastByZIP__return = port.getCityForecastByZIP(_getCityForecastByZIP_zip);
60 System.out.println("getCityForecastByZIP.result=" + _getCityForecastByZIP__return);
61
62
63 }
64
65 System.exit(0);
66 }
67
68 }