1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
35
36
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
76
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
86
87
88
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 }