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