This project has retired. For details please refer to its
Attic page.
NavigationService xref
1
2 package org.apache.chemistry.opencmis.commons.impl.jaxb;
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 = "NavigationService", targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200908/", wsdlLocation = "file:/home/gab/dev/chemistry-opencmis-0.7.0-RC1/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/resources/wsdl/CMISWS-Service.wsdl")
21 public class NavigationService
22 extends Service
23 {
24
25 private final static URL NAVIGATIONSERVICE_WSDL_LOCATION;
26 private final static Logger logger = Logger.getLogger(org.apache.chemistry.opencmis.commons.impl.jaxb.NavigationService.class.getName());
27
28 static {
29 URL url = null;
30 try {
31 URL baseUrl;
32 baseUrl = org.apache.chemistry.opencmis.commons.impl.jaxb.NavigationService.class.getResource(".");
33 url = new URL(baseUrl, "file:/home/gab/dev/chemistry-opencmis-0.7.0-RC1/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/resources/wsdl/CMISWS-Service.wsdl");
34 } catch (MalformedURLException e) {
35 logger.warning("Failed to create URL for the wsdl Location: 'file:/home/gab/dev/chemistry-opencmis-0.7.0-RC1/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/resources/wsdl/CMISWS-Service.wsdl', retrying as a local file");
36 logger.warning(e.getMessage());
37 }
38 NAVIGATIONSERVICE_WSDL_LOCATION = url;
39 }
40
41 public NavigationService(URL wsdlLocation, QName serviceName) {
42 super(wsdlLocation, serviceName);
43 }
44
45 public NavigationService() {
46 super(NAVIGATIONSERVICE_WSDL_LOCATION, new QName("http://docs.oasis-open.org/ns/cmis/ws/200908/", "NavigationService"));
47 }
48
49
50
51
52
53
54 @WebEndpoint(name = "NavigationServicePort")
55 public NavigationServicePort getNavigationServicePort() {
56 return super.getPort(new QName("http://docs.oasis-open.org/ns/cmis/ws/200908/", "NavigationServicePort"), NavigationServicePort.class);
57 }
58
59
60
61
62
63
64
65
66 @WebEndpoint(name = "NavigationServicePort")
67 public NavigationServicePort getNavigationServicePort(WebServiceFeature... features) {
68 return super.getPort(new QName("http://docs.oasis-open.org/ns/cmis/ws/200908/", "NavigationServicePort"), NavigationServicePort.class, features);
69 }
70
71 }