View Javadoc
1   /*
2    * JBoss, Home of Professional Open Source
3    * Copyright 2014, Red Hat, Inc. and/or its affiliates, and individual
4    * contributors by the @authors tag. See the copyright.txt in the
5    * distribution for a full listing of individual contributors.
6    *
7    * Licensed under the Apache License, Version 2.0 (the "License");
8    * you may not use this file except in compliance with the License.
9    * You may obtain a copy of the License at
10   * http://www.apache.org/licenses/LICENSE-2.0
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  package org.jboss.as.quickstarts.wsat.simple.jaxws;
18  
19  import javax.xml.namespace.QName;
20  import javax.xml.ws.Service;
21  import javax.xml.ws.WebEndpoint;
22  import javax.xml.ws.WebServiceClient;
23  import javax.xml.ws.WebServiceFeature;
24  
25  import java.net.MalformedURLException;
26  import java.net.URL;
27  import java.util.logging.Logger;
28  
29  /**
30   * This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 in JDK 6 Generated source version: 2.1
31   * 
32   */
33  @WebServiceClient(name = "RestaurantServiceATService", targetNamespace = "http://www.jboss.org/jboss-jdf/jboss-as-quickstart/wsat/simple/Restaurant")
34  public class RestaurantServiceATService extends Service {
35  
36      private final static URL RESTAURANTSERVICEATSERVICE_WSDL_LOCATION;
37      private final static Logger logger = Logger.getLogger(RestaurantServiceATService.class.getName());
38  
39      static {
40          URL url = null;
41          try {
42              URL baseUrl;
43              baseUrl = RestaurantServiceATService.class.getResource(".");
44              url = new URL(baseUrl, "RestaurantServiceAT.wsdl");
45          } catch (MalformedURLException e) {
46              logger.warning("Failed to create URL for the wsdl Location: 'RestaurantServiceAT.wsdl', retrying as a local file");
47              logger.warning(e.getMessage());
48          }
49          RESTAURANTSERVICEATSERVICE_WSDL_LOCATION = url;
50      }
51  
52      public RestaurantServiceATService(URL wsdlLocation, QName serviceName) {
53          super(wsdlLocation, serviceName);
54      }
55  
56      public RestaurantServiceATService() {
57          super(RESTAURANTSERVICEATSERVICE_WSDL_LOCATION, new QName(
58                  "http://www.jboss.org/jboss-jdf/jboss-as-quickstart/wsat/simple/Restaurant", "RestaurantServiceATService"));
59      }
60  
61      /**
62       * 
63       * @return returns RestaurantServiceAT
64       */
65      @WebEndpoint(name = "RestaurantServiceAT")
66      public RestaurantServiceAT getRestaurantServiceAT() {
67          return super.getPort(new QName("http://www.jboss.org/jboss-jdf/jboss-as-quickstart/wsat/simple/Restaurant",
68                  "RestaurantServiceAT"), RestaurantServiceAT.class);
69      }
70  
71      /**
72       * 
73       * @param features A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the
74       *        <code>features</code> parameter will have their default values.
75       * @return returns RestaurantServiceAT
76       */
77      @WebEndpoint(name = "RestaurantServiceAT")
78      public RestaurantServiceAT getRestaurantServiceAT(WebServiceFeature... features) {
79          return super.getPort(new QName("http://www.jboss.org/jboss-jdf/jboss-as-quickstart/wsat/simple/Restaurant",
80                  "RestaurantServiceAT"), RestaurantServiceAT.class, features);
81      }
82  
83  }