1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package org.oasis_open.docs.wsn.client;
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 import org.oasis_open.docs.wsn.brw_2.NotificationBroker;
33 import org.oasis_open.docs.wsn.brw_2.PullPoint;
34
35
36
37
38
39
40
41
42 @WebServiceClient(name = "NotificationService", targetNamespace = "http://docs.oasis-open.org/wsn/brw-2"
43
44 )
45 public class NotificationService
46 extends Service
47 {
48 public static QName qname= new QName("http://docs.oasis-open.org/wsn/brw-2", "NotificationService");
49 private final static URL NOTIFICATIONSERVICE_WSDL_LOCATION;
50 private final static Logger logger = Logger.getLogger(NotificationService.class.getName());
51
52 static {
53 ClassLoader cl = Thread.currentThread().getContextClassLoader();
54 if (cl != null) {
55 NOTIFICATIONSERVICE_WSDL_LOCATION = cl.getResource("brw-2impl.wsdl");
56 } else {
57 NOTIFICATIONSERVICE_WSDL_LOCATION = NotificationService.class.getClassLoader().getResource("brw-2impl.wsdl");
58 }
59 }
60
61 public NotificationService(URL wsdlLocation, QName serviceName) {
62 super(wsdlLocation, serviceName);
63 }
64
65 public NotificationService() {
66 super(NOTIFICATIONSERVICE_WSDL_LOCATION, new QName("http://docs.oasis-open.org/wsn/brw-2", "NotificationService"));
67 }
68
69
70
71
72
73
74 @WebEndpoint(name = "NotificationPort")
75 public NotificationBroker getNotificationPort() {
76 return super.getPort(new QName("http://docs.oasis-open.org/wsn/brw-2", "NotificationPort"), NotificationBroker.class);
77 }
78
79
80
81
82
83
84
85
86 @WebEndpoint(name = "NotificationPort")
87 public NotificationBroker getNotificationPort(WebServiceFeature... features) {
88 return super.getPort(new QName("http://docs.oasis-open.org/wsn/brw-2", "NotificationPort"), NotificationBroker.class, features);
89 }
90
91 }