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