GLS ShipIT  2.8.11
GLS ShipIT - REST services
TimeframeService.java
Go to the documentation of this file.
1 package eu.gls_group.fpcs.v1.timeframe;
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 = "TimeframeService",
20  wsdlLocation = "file:soap-datatypes/src/main/resources/Timeframe.wsdl",
21  targetNamespace = "http://fpcs.gls-group.eu/v1/Timeframe")
22 public class TimeframeService 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/Timeframe", "TimeframeService");
27  public final static QName TimeframePort = new QName("http://fpcs.gls-group.eu/v1/Timeframe", "TimeframePort");
28  static {
29  URL url = null;
30  try {
31  url = new URL("file:soap-datatypes/src/main/resources/Timeframe.wsdl");
32  } catch (MalformedURLException e) {
33  java.util.logging.Logger.getLogger(TimeframeService.class.getName())
34  .log(java.util.logging.Level.INFO,
35  "Can not initialize the default wsdl from {0}", "file:soap-datatypes/src/main/resources/Timeframe.wsdl");
36  }
37  WSDL_LOCATION = url;
38  }
39 
40  public TimeframeService(URL wsdlLocation) {
41  super(wsdlLocation, SERVICE);
42  }
43 
44  public TimeframeService(URL wsdlLocation, QName serviceName) {
45  super(wsdlLocation, serviceName);
46  }
47 
48  public TimeframeService() {
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 TimeframeService(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 TimeframeService(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 TimeframeService(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
72 
73  super(wsdlLocation, serviceName, features);
74  }
75 
81  @WebEndpoint(name = "TimeframePort")
82  public TimeframePortType getTimeframePort() {
83  return super.getPort(TimeframePort, TimeframePortType.class);
84  }
85 
93  @WebEndpoint(name = "TimeframePort")
94  public TimeframePortType getTimeframePort(WebServiceFeature... features) {
95  return super.getPort(TimeframePort, TimeframePortType.class, features);
96  }
97 
98 }
TimeframeService(URL wsdlLocation, QName serviceName)
TimeframeService(URL wsdlLocation, QName serviceName, WebServiceFeature... features)
TimeframeService(URL wsdlLocation, WebServiceFeature... features)
TimeframeService(WebServiceFeature... features)