View Javadoc

1   /*
2    * $Id: Weather.java 21856 2011-05-09 09:59:16Z dirk.olmes $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.cxf.weatherservice.myweather;
12  
13  import java.net.URL;
14  
15  import javax.xml.namespace.QName;
16  import javax.xml.ws.Service;
17  import javax.xml.ws.WebEndpoint;
18  import javax.xml.ws.WebServiceClient;
19  import javax.xml.ws.WebServiceFeature;
20  
21  @WebServiceClient(name = "Weather",
22                    wsdlLocation = "c:/tmp/weather.wsdl",
23                    targetNamespace = "http://ws.cdyne.com/WeatherWS/")
24  public class Weather extends Service {
25  
26      public final static URL WSDL_LOCATION;
27      public final static QName SERVICE = new QName("http://ws.cdyne.com/WeatherWS/", "Weather");
28      public final static QName WeatherHttpPost = new QName("http://ws.cdyne.com/WeatherWS/", "WeatherHttpPost");
29      public final static QName WeatherHttpGet = new QName("http://ws.cdyne.com/WeatherWS/", "WeatherHttpGet");
30      public final static QName WeatherSoap12 = new QName("http://ws.cdyne.com/WeatherWS/", "WeatherSoap12");
31      public final static QName WeatherSoap = new QName("http://ws.cdyne.com/WeatherWS/", "WeatherSoap");
32      static
33      {
34          WSDL_LOCATION = Weather.class.getClassLoader().getResource("org/mule/issues/weather.wsdl");
35      }
36  
37      public Weather(URL wsdlLocation) {
38          super(wsdlLocation, SERVICE);
39      }
40  
41      public Weather(URL wsdlLocation, QName serviceName) {
42          super(wsdlLocation, serviceName);
43      }
44  
45      public Weather() {
46          super(WSDL_LOCATION, SERVICE);
47      }
48  
49      /**
50       *
51       * @return
52       *     returns WeatherHttpPost
53       */
54      @WebEndpoint(name = "WeatherHttpPost")
55      public WeatherHttpPost getWeatherHttpPost() {
56          return super.getPort(WeatherHttpPost, WeatherHttpPost.class);
57      }
58  
59      /**
60       *
61       * @param features
62       *     A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.  Supported features not in the <code>features</code> parameter will have their default values.
63       * @return
64       *     returns WeatherHttpPost
65       */
66      @WebEndpoint(name = "WeatherHttpPost")
67      public WeatherHttpPost getWeatherHttpPost(WebServiceFeature... features) {
68          return super.getPort(WeatherHttpPost, WeatherHttpPost.class, features);
69      }
70      /**
71       *
72       * @return
73       *     returns WeatherHttpGet
74       */
75      @WebEndpoint(name = "WeatherHttpGet")
76      public WeatherHttpGet getWeatherHttpGet() {
77          return super.getPort(WeatherHttpGet, WeatherHttpGet.class);
78      }
79  
80      /**
81       *
82       * @param features
83       *     A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.  Supported features not in the <code>features</code> parameter will have their default values.
84       * @return
85       *     returns WeatherHttpGet
86       */
87      @WebEndpoint(name = "WeatherHttpGet")
88      public WeatherHttpGet getWeatherHttpGet(WebServiceFeature... features) {
89          return super.getPort(WeatherHttpGet, WeatherHttpGet.class, features);
90      }
91      /**
92       *
93       * @return
94       *     returns WeatherSoap
95       */
96      @WebEndpoint(name = "WeatherSoap12")
97      public WeatherSoap getWeatherSoap12() {
98          return super.getPort(WeatherSoap12, WeatherSoap.class);
99      }
100 
101     /**
102      *
103      * @param features
104      *     A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.  Supported features not in the <code>features</code> parameter will have their default values.
105      * @return
106      *     returns WeatherSoap
107      */
108     @WebEndpoint(name = "WeatherSoap12")
109     public WeatherSoap getWeatherSoap12(WebServiceFeature... features) {
110         return super.getPort(WeatherSoap12, WeatherSoap.class, features);
111     }
112     /**
113      *
114      * @return
115      *     returns WeatherSoap
116      */
117     @WebEndpoint(name = "WeatherSoap")
118     public WeatherSoap getWeatherSoap() {
119         return super.getPort(WeatherSoap, WeatherSoap.class);
120     }
121 
122     /**
123      *
124      * @param features
125      *     A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.  Supported features not in the <code>features</code> parameter will have their default values.
126      * @return
127      *     returns WeatherSoap
128      */
129     @WebEndpoint(name = "WeatherSoap")
130     public WeatherSoap getWeatherSoap(WebServiceFeature... features) {
131         return super.getPort(WeatherSoap, WeatherSoap.class, features);
132     }
133 
134 }