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