1
2 package org.oasis_open.docs.wsn.brw_2;
3
4 import java.net.MalformedURLException;
5 import java.net.URL;
6 import java.util.logging.Logger;
7 import javax.xml.namespace.QName;
8 import javax.xml.ws.Service;
9 import javax.xml.ws.WebEndpoint;
10 import javax.xml.ws.WebServiceClient;
11 import javax.xml.ws.WebServiceFeature;
12
13
14
15
16
17
18
19
20 @WebServiceClient(name = "NotificationService", targetNamespace = "http://docs.oasis-open.org/wsn/brw-2")
21 public class NotificationService
22 extends Service
23 {
24
25 private final static URL NOTIFICATIONSERVICE_WSDL_LOCATION;
26 private final static Logger logger = Logger.getLogger(org.oasis_open.docs.wsn.brw_2.NotificationService.class.getName());
27
28
29 static {
30 ClassLoader cl = Thread.currentThread().getContextClassLoader();
31 if (cl != null) {
32 NOTIFICATIONSERVICE_WSDL_LOCATION = cl.getResource("brw-2impl.wsdl");
33 } else {
34 NOTIFICATIONSERVICE_WSDL_LOCATION = NotificationService.class.getClassLoader().getResource("brw-2impl.wsdl");
35 }
36 }
37 public NotificationService(URL wsdlLocation, QName serviceName) {
38 super(wsdlLocation, serviceName);
39 }
40
41 public NotificationService() {
42 super(NOTIFICATIONSERVICE_WSDL_LOCATION, new QName("http://docs.oasis-open.org/wsn/brw-2", "NotificationService"));
43 }
44
45
46
47
48
49
50 @WebEndpoint(name = "NotificationPort")
51 public NotificationBroker getNotificationPort() {
52 return super.getPort(new QName("http://docs.oasis-open.org/wsn/brw-2", "NotificationPort"), NotificationBroker.class);
53 }
54
55
56
57
58
59
60
61
62 @WebEndpoint(name = "NotificationPort")
63 public NotificationBroker getNotificationPort(WebServiceFeature... features) {
64 return super.getPort(new QName("http://docs.oasis-open.org/wsn/brw-2", "NotificationPort"), NotificationBroker.class, features);
65 }
66
67 }