1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.jboss.as.quickstarts.wsba.participantcompletion.simple.jaxws;
18
19 import javax.xml.namespace.QName;
20 import javax.xml.ws.Service;
21 import javax.xml.ws.WebEndpoint;
22 import javax.xml.ws.WebServiceClient;
23
24 import java.net.MalformedURLException;
25 import java.net.URL;
26 import java.util.logging.Logger;
27
28
29
30
31
32 @WebServiceClient(name = "SetServiceBAService", targetNamespace = "http://www.jboss.org/jboss-jdf/jboss-as-quickstart/helloworld/wsba/participantcompletion/set")
33 public class SetServiceBAService extends Service {
34
35 private final static URL SETSERVICEBASERVICE_WSDL_LOCATION;
36 private final static Logger logger = Logger.getLogger(SetServiceBAService.class.getName());
37
38 static {
39 URL url = null;
40 try {
41 URL baseUrl;
42 baseUrl = SetServiceBAService.class.getResource(".");
43 url = new URL(baseUrl, "/WEB-INF/wsdl/SetServiceBA.wsdl");
44 } catch (MalformedURLException e) {
45 logger.warning("Failed to create URL for the wsdl Location: '/WEB-INF/wsdl/SetServiceBA.wsdl', retrying as a local file");
46 logger.warning(e.getMessage());
47 }
48 SETSERVICEBASERVICE_WSDL_LOCATION = url;
49 }
50
51 public SetServiceBAService(URL wsdlLocation, QName serviceName) {
52 super(wsdlLocation, serviceName);
53 }
54
55 public SetServiceBAService() {
56 super(SETSERVICEBASERVICE_WSDL_LOCATION, new QName("http://www.jboss.org/jboss-jdf/jboss-as-quickstart/Set",
57 "SetServiceBAService"));
58 }
59
60
61
62
63
64 @WebEndpoint(name = "SetServiceBA")
65 public SetServiceBA getSetServiceBA() {
66 return super.getPort(new QName("http://www.jboss.org/jboss-jdf/jboss-as-quickstart/Set", "SetServiceBA"), SetServiceBA.class);
67 }
68
69 }