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  
22  package org.miloss.fgsms.plugins.sla.alertservice;
23  
24  import java.net.MalformedURLException;
25  import java.net.URL;
26  import java.util.logging.Logger;
27  import javax.xml.namespace.QName;
28  import javax.xml.ws.Service;
29  import javax.xml.ws.WebEndpoint;
30  import javax.xml.ws.WebServiceClient;
31  import javax.xml.ws.WebServiceFeature;
32  
33  
34  /**
35   * This class was generated by the JAX-WS RI.
36   * JAX-WS RI 2.1.7-04/11/2011 03:11 PM(mockbuild)-
37   * Generated source version: 2.1
38   * 
39   */
40  @WebServiceClient(name = "AlertRecieverService", targetNamespace = "urn:mil:army:cerdec:fgsms:plugins:sla:alertservice", wsdlLocation = "file:/c:/Projects/fgsms/samples/SLAPluginWebService.wsdl")
41  public class AlertRecieverService
42      extends Service
43  {
44  
45      private final static URL ALERTRECIEVERSERVICE_WSDL_LOCATION;
46      private final static Logger logger = Logger.getLogger(org.miloss.fgsms.plugins.sla.alertservice.AlertRecieverService.class.getName());
47  
48      static {
49          URL url = null;
50          try {
51              URL baseUrl;
52              baseUrl = org.miloss.fgsms.plugins.sla.alertservice.AlertRecieverService.class.getResource(".");
53              url = new URL(baseUrl, "file:/c:/Projects/fgsms/samples/SLAPluginWebService.wsdl");
54          } catch (MalformedURLException e) {
55              logger.warning("Failed to create URL for the wsdl Location: 'file:/c:/Projects/fgsms/samples/SLAPluginWebService.wsdl', retrying as a local file");
56              logger.warning(e.getMessage());
57          }
58          ALERTRECIEVERSERVICE_WSDL_LOCATION = url;
59      }
60  
61      public AlertRecieverService(URL wsdlLocation, QName serviceName) {
62          super(wsdlLocation, serviceName);
63      }
64  
65      public AlertRecieverService() {
66          super(ALERTRECIEVERSERVICE_WSDL_LOCATION, new QName("urn:mil:army:cerdec:fgsms:plugins:sla:alertservice", "AlertRecieverService"));
67      }
68  
69      /**
70       * 
71       * @return
72       *     returns AlertRecieverPortType
73       */
74      @WebEndpoint(name = "AlertRecieverPort")
75      public AlertRecieverPortType getAlertRecieverPort() {
76          return super.getPort(new QName("urn:mil:army:cerdec:fgsms:plugins:sla:alertservice", "AlertRecieverPort"), AlertRecieverPortType.class);
77      }
78  
79      /**
80       * 
81       * @param features
82       *     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.
83       * @return
84       *     returns AlertRecieverPortType
85       */
86      @WebEndpoint(name = "AlertRecieverPort")
87      public AlertRecieverPortType getAlertRecieverPort(WebServiceFeature... features) {
88          return super.getPort(new QName("urn:mil:army:cerdec:fgsms:plugins:sla:alertservice", "AlertRecieverPort"), AlertRecieverPortType.class, features);
89      }
90  
91  }