1
2 package org.kuali.ole.select.testing;
3
4 import javax.xml.namespace.QName;
5 import javax.xml.ws.Service;
6 import javax.xml.ws.WebEndpoint;
7 import javax.xml.ws.WebServiceClient;
8 import javax.xml.ws.WebServiceFeature;
9 import java.net.MalformedURLException;
10 import java.net.URL;
11 import java.util.logging.Logger;
12
13
14
15
16
17
18
19 @WebServiceClient(name = "preOrderService", targetNamespace = "http://service.select.ole.kuali.org/", wsdlLocation = "http://localhost:8080/ole-local/remoting/preOrderService?wsdl")
20 public class PreOrderService_Service
21 extends Service {
22
23 private final static URL PREORDERSERVICE_WSDL_LOCATION;
24 private final static Logger logger = Logger.getLogger(org.kuali.ole.select.testing.PreOrderService_Service.class.getName());
25
26 static {
27 URL url = null;
28 try {
29 URL baseUrl;
30
31 url = new URL("http://localhost:8080/ole-local/remoting/preOrderService?wsdl");
32 } catch (MalformedURLException e) {
33 logger.warning("Failed to create URL for the wsdl Location: 'http://localhost:8080/ole-local/remoting/preOrderService?wsdl', retrying as a local file");
34 logger.warning(e.getMessage());
35 }
36 PREORDERSERVICE_WSDL_LOCATION = url;
37 }
38
39 public PreOrderService_Service(URL wsdlLocation, QName serviceName) {
40 super(wsdlLocation, serviceName);
41 }
42
43 public PreOrderService_Service() {
44 super(PREORDERSERVICE_WSDL_LOCATION, new QName("http://service.select.ole.kuali.org/", "preOrderService"));
45 }
46
47
48
49
50 @WebEndpoint(name = "preOrderServicePort")
51 public PreOrderService getPreOrderServicePort() {
52 return super.getPort(new QName("http://service.select.ole.kuali.org/", "preOrderServicePort"), PreOrderService.class);
53 }
54
55
56
57
58
59 @WebEndpoint(name = "preOrderServicePort")
60 public PreOrderService getPreOrderServicePort(WebServiceFeature... features) {
61 return super.getPort(new QName("http://service.select.ole.kuali.org/", "preOrderServicePort"), PreOrderService.class, features);
62 }
63
64 }