1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
36
37
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
72
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
82
83
84
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 }