GLS ShipIT  2.8.11
GLS ShipIT - REST services
ShipmentProcessingService.java
Go to the documentation of this file.
1 package eu.gls_group.fpcs.v1.shipmentprocessing;
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 
21 @WebServiceClient(name = "ShipmentProcessingService",
22  wsdlLocation = "file:soap-datatypes/src/main/resources/ShipmentProcessing.wsdl",
23  targetNamespace = "http://fpcs.gls-group.eu/v1/ShipmentProcessing")
24 public class ShipmentProcessingService extends Service {
25 
26  public final static URL WSDL_LOCATION;
27 
28  public final static QName SERVICE = new QName("http://fpcs.gls-group.eu/v1/ShipmentProcessing", "ShipmentProcessingService");
29  public final static QName ShipmentProcessingBinding = new QName("http://fpcs.gls-group.eu/v1/ShipmentProcessing", "ShipmentProcessingBinding");
30  static {
31  URL url = null;
32  try {
33  url = new URL("file:soap-datatypes/src/main/resources/ShipmentProcessing.wsdl");
34  } catch (MalformedURLException e) {
35  java.util.logging.Logger.getLogger(ShipmentProcessingService.class.getName())
36  .log(java.util.logging.Level.INFO,
37  "Can not initialize the default wsdl from {0}", "file:soap-datatypes/src/main/resources/ShipmentProcessing.wsdl");
38  }
39  WSDL_LOCATION = url;
40  }
41 
42  public ShipmentProcessingService(URL wsdlLocation) {
43  super(wsdlLocation, SERVICE);
44  }
45 
46  public ShipmentProcessingService(URL wsdlLocation, QName serviceName) {
47  super(wsdlLocation, serviceName);
48  }
49 
51  super(WSDL_LOCATION, SERVICE);
52  }
53 
54  //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
55  //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
56  //compliant code instead.
57  public ShipmentProcessingService(WebServiceFeature... features) {
58 
59  super(WSDL_LOCATION, SERVICE, features);
60  }
61 
62  //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
63  //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
64  //compliant code instead.
65  public ShipmentProcessingService(URL wsdlLocation, WebServiceFeature... features) {
66 
67  super(wsdlLocation, SERVICE, features);
68  }
69 
70  //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
71  //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
72  //compliant code instead.
73  public ShipmentProcessingService(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
74 
75  super(wsdlLocation, serviceName, features);
76  }
77 
83  @WebEndpoint(name = "ShipmentProcessingBinding")
84  public ShipmentProcessingPortType getShipmentProcessingBinding() {
85  return super.getPort(ShipmentProcessingBinding, ShipmentProcessingPortType.class);
86  }
87 
95  @WebEndpoint(name = "ShipmentProcessingBinding")
96  public ShipmentProcessingPortType getShipmentProcessingBinding(WebServiceFeature... features) {
97  return super.getPort(ShipmentProcessingBinding, ShipmentProcessingPortType.class, features);
98  }
99 
100 }
ShipmentProcessingService(URL wsdlLocation, WebServiceFeature... features)
ShipmentProcessingService(URL wsdlLocation, QName serviceName, WebServiceFeature... features)