View Javadoc
1   /**
2    * This Source Code Form is subject to the terms of the Mozilla Public
3    * License, v. 2.0. If a copy of the MPL was not distributed with this
4    * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5    *
6    * If it is not possible or desirable to put the notice in a particular
7    * file, then You may include the notice in a location (such as a LICENSE
8    * file in a relevant directory) where a recipient would be likely to look
9    * for such a notice.
10  
11   * 
12   */
13   
14  /*  ---------------------------------------------------------------------------
15   *  U.S. Government, Department of the Army
16   *  Army Materiel Command
17   *  Research Development Engineering Command
18   *  Communications Electronics Research Development and Engineering Center
19   *  ---------------------------------------------------------------------------
20   */
21  package org.miloss.fgsms.plugins.sla.alertservice;
22  
23  import java.net.MalformedURLException;
24  import java.net.URL;
25  import java.util.logging.Logger;
26  import javax.xml.namespace.QName;
27  import javax.xml.ws.Service;
28  import javax.xml.ws.WebEndpoint;
29  import javax.xml.ws.WebServiceClient;
30  import javax.xml.ws.WebServiceFeature;
31  
32  
33  /**
34   * This class was generated by the JAX-WS RI.
35   * JAX-WS RI 2.1.7-04/11/2011 03:11 PM(mockbuild)-
36   * Generated source version: 2.1
37   * 
38   */
39  @WebServiceClient(name = "AlertRecieverService", targetNamespace = "urn:mil:army:cerdec:fgsms:plugins:sla:alertservice", wsdlLocation = "file:/c:/Projects/fgsms/samples/SLAPluginWebService.wsdl")
40  public class AlertRecieverService
41      extends Service
42  {
43  
44      private final static URL ALERTRECIEVERSERVICE_WSDL_LOCATION;
45      private final static Logger logger = Logger.getLogger(org.miloss.fgsms.plugins.sla.alertservice.AlertRecieverService.class.getName());
46  
47      static {
48          URL url = null;
49          try {
50              URL baseUrl;
51              baseUrl = org.miloss.fgsms.plugins.sla.alertservice.AlertRecieverService.class.getResource(".");
52              url = new URL(baseUrl, "file:/c:/Projects/fgsms/samples/SLAPluginWebService.wsdl");
53          } catch (MalformedURLException e) {
54              logger.warning("Failed to create URL for the wsdl Location: 'file:/c:/Projects/fgsms/samples/SLAPluginWebService.wsdl', retrying as a local file");
55              logger.warning(e.getMessage());
56          }
57          ALERTRECIEVERSERVICE_WSDL_LOCATION = url;
58      }
59  
60      public AlertRecieverService(URL wsdlLocation, QName serviceName) {
61          super(wsdlLocation, serviceName);
62      }
63  
64      public AlertRecieverService() {
65          super(ALERTRECIEVERSERVICE_WSDL_LOCATION, new QName("urn:mil:army:cerdec:fgsms:plugins:sla:alertservice", "AlertRecieverService"));
66      }
67      
68      
69      public AlertRecieverService(URL wsdl) {
70          super(wsdl, new QName("urn:mil:army:cerdec:fgsms:plugins:sla:alertservice", "AlertRecieverService"));
71      }
72  
73      /**
74       * 
75       * @return
76       *     returns AlertRecieverPortType
77       */
78      @WebEndpoint(name = "AlertRecieverPort")
79      public AlertRecieverPortType getAlertRecieverPort() {
80          return super.getPort(new QName("urn:mil:army:cerdec:fgsms:plugins:sla:alertservice", "AlertRecieverPort"), AlertRecieverPortType.class);
81      }
82  
83      /**
84       * 
85       * @param features
86       *     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.
87       * @return
88       *     returns AlertRecieverPortType
89       */
90      @WebEndpoint(name = "AlertRecieverPort")
91      public AlertRecieverPortType getAlertRecieverPort(WebServiceFeature... features) {
92          return super.getPort(new QName("urn:mil:army:cerdec:fgsms:plugins:sla:alertservice", "AlertRecieverPort"), AlertRecieverPortType.class, features);
93      }
94  
95  }