GLS ShipIT  2.8.11
GLS ShipIT - REST services
TrackingService.java
Go to the documentation of this file.
1 package eu.gls_group.fpcs.v1.tracking;
2 
3 import javax.xml.namespace.QName;
4 import javax.xml.ws.Service;
5 import javax.xml.ws.WebEndpoint;
6 import javax.xml.ws.WebServiceClient;
7 import javax.xml.ws.WebServiceFeature;
8 import java.net.MalformedURLException;
9 import java.net.URL;
10 
19 @WebServiceClient(name = "TrackingService",
20  wsdlLocation = "file:soap-datatypes/src/main/resources/Tracking.wsdl",
21  targetNamespace = "http://fpcs.gls-group.eu/v1/Tracking")
22 public class TrackingService extends Service {
23 
24  public final static URL WSDL_LOCATION;
25 
26  public final static QName SERVICE = new QName("http://fpcs.gls-group.eu/v1/Tracking", "TrackingService");
27  public final static QName TrackingPort = new QName("http://fpcs.gls-group.eu/v1/Tracking", "TrackingPort");
28  static {
29  URL url = null;
30  try {
31  url = new URL("file:soap-datatypes/src/main/resources/Tracking.wsdl");
32  } catch (MalformedURLException e) {
33  java.util.logging.Logger.getLogger(TrackingService.class.getName())
34  .log(java.util.logging.Level.INFO,
35  "Can not initialize the default wsdl from {0}", "file:soap-datatypes/src/main/resources/Tracking.wsdl");
36  }
37  WSDL_LOCATION = url;
38  }
39 
40  public TrackingService(URL wsdlLocation) {
41  super(wsdlLocation, SERVICE);
42  }
43 
44  public TrackingService(URL wsdlLocation, QName serviceName) {
45  super(wsdlLocation, serviceName);
46  }
47 
48  public TrackingService() {
49  super(WSDL_LOCATION, SERVICE);
50  }
51 
52  //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
53  //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
54  //compliant code instead.
55  public TrackingService(WebServiceFeature... features) {
56 
57  super(WSDL_LOCATION, SERVICE, features);
58  }
59 
60  //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
61  //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
62  //compliant code instead.
63  public TrackingService(URL wsdlLocation, WebServiceFeature... features) {
64 
65  super(wsdlLocation, SERVICE, features);
66  }
67 
68  //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
69  //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
70  //compliant code instead.
71  public TrackingService(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
72 
73  super(wsdlLocation, serviceName, features);
74  }
75 
81  @WebEndpoint(name = "TrackingPort")
82  public TrackingPortType getTrackingPort() {
83  return super.getPort(TrackingPort, TrackingPortType.class);
84  }
85 
93  @WebEndpoint(name = "TrackingPort")
94  public TrackingPortType getTrackingPort(WebServiceFeature... features) {
95  return super.getPort(TrackingPort, TrackingPortType.class, features);
96  }
97 
98 }
TrackingService(URL wsdlLocation, QName serviceName)
TrackingService(URL wsdlLocation, WebServiceFeature... features)
TrackingService(WebServiceFeature... features)
TrackingService(URL wsdlLocation, QName serviceName, WebServiceFeature... features)