GLS ShipIT
GLS ShipIT - SOAP services
 All Classes Namespaces Files Functions Variables Enumerator Pages
TimeframeService.java
Go to the documentation of this file.
1 package eu.gls_group.fpcs.v1.timeframe;
2 
3 import java.net.MalformedURLException;
4 import java.net.URL;
5 import javax.xml.namespace.QName;
6 import javax.xml.ws.WebEndpoint;
7 import javax.xml.ws.WebServiceClient;
8 import javax.xml.ws.WebServiceFeature;
9 import javax.xml.ws.Service;
10 
20 @WebServiceClient(name = "TimeframeService",
21  wsdlLocation = "file:soap-datatypes/src/main/resources/Timeframe.wsdl",
22  targetNamespace = "http://fpcs.gls-group.eu/v1/Timeframe")
23 public class TimeframeService extends Service {
24 
25  public final static URL WSDL_LOCATION;
26 
27  public final static QName SERVICE = new QName("http://fpcs.gls-group.eu/v1/Timeframe", "TimeframeService");
28  public final static QName TimeframePort = new QName("http://fpcs.gls-group.eu/v1/Timeframe", "TimeframePort");
29  static {
30  URL url = null;
31  try {
32  url = new URL("file:soap-datatypes/src/main/resources/Timeframe.wsdl");
33  } catch (MalformedURLException e) {
34  java.util.logging.Logger.getLogger(TimeframeService.class.getName())
35  .log(java.util.logging.Level.INFO,
36  "Can not initialize the default wsdl from {0}", "file:soap-datatypes/src/main/resources/Timeframe.wsdl");
37  }
38  WSDL_LOCATION = url;
39  }
40 
41  public TimeframeService(URL wsdlLocation) {
42  super(wsdlLocation, SERVICE);
43  }
44 
45  public TimeframeService(URL wsdlLocation, QName serviceName) {
46  super(wsdlLocation, serviceName);
47  }
48 
49  public TimeframeService() {
50  super(WSDL_LOCATION, SERVICE);
51  }
52 
53  //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
54  //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
55  //compliant code instead.
56  public TimeframeService(WebServiceFeature ... features) {
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  super(wsdlLocation, SERVICE, features);
65  }
66 
67  //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
68  //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
69  //compliant code instead.
70  public TimeframeService(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) {
71  super(wsdlLocation, serviceName, features);
72  }
73 
79  @WebEndpoint(name = "TimeframePort")
80  public TimeframePortType getTimeframePort() {
81  return super.getPort(TimeframePort, TimeframePortType.class);
82  }
83 
91  @WebEndpoint(name = "TimeframePort")
92  public TimeframePortType getTimeframePort(WebServiceFeature... features) {
93  return super.getPort(TimeframePort, TimeframePortType.class, features);
94  }
95 
96 }