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.wsba.coordinatorcompletion.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  
24  import java.net.MalformedURLException;
25  import java.net.URL;
26  import java.util.logging.Logger;
27  
28  /**
29   * This class was generated by the JAX-WS RI. JAX-WS RI 2.1.2-hudson-182-RC1 Generated source version: 2.0
30   * 
31   */
32  @WebServiceClient(name = "SetServiceBAService", targetNamespace = "http://www.jboss.org/jboss-jdf/jboss-as-quickstart/helloworld/wsba/coordinatorcompletion/set")
33  public class SetServiceBAService extends Service {
34  
35      private final static URL SETSERVICEBASERVICE_WSDL_LOCATION;
36      private final static Logger logger = Logger.getLogger(SetServiceBAService.class.getName());
37  
38      static {
39          URL url = null;
40          try {
41              URL baseUrl;
42              baseUrl = SetServiceBAService.class.getResource(".");
43              url = new URL(baseUrl, "/WEB-INF/wsdl/SetServiceBA.wsdl");
44          } catch (MalformedURLException e) {
45              logger.warning("Failed to create URL for the wsdl Location: '/WEB-INF/wsdl/SetServiceBA.wsdl', retrying as a local file");
46              logger.warning(e.getMessage());
47          }
48          SETSERVICEBASERVICE_WSDL_LOCATION = url;
49      }
50  
51      public SetServiceBAService(URL wsdlLocation, QName serviceName) {
52          super(wsdlLocation, serviceName);
53      }
54  
55      public SetServiceBAService() {
56          super(SETSERVICEBASERVICE_WSDL_LOCATION, new QName("http://www.jboss.org/jboss-jdf/jboss-as-quickstart/Set",
57                  "SetServiceBAService"));
58      }
59  
60      /**
61       * 
62       * @return returns ISetServiceBA
63       */
64      @WebEndpoint(name = "SetServiceBA")
65      public SetServiceBA getSetServiceBA() {
66          return super.getPort(new QName("http://www.jboss.org/jboss-jdf/jboss-as-quickstart/Set", "SetServiceBA"), SetServiceBA.class);
67      }
68  
69  }