1 package org.fosstrak.epcis.soap;
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
11
12
13
14
15
16 @WebServiceClient(name = "EPCglobalEPCISService", wsdlLocation = "file:/Z:/Documents%20and%20Settings/tzhstmat/workspaceEPCIS/epcis/epcis-commons/../epcis-repository/src/main/resources/wsdl/EPCglobal-epcis-query-1_0.wsdl", targetNamespace = "urn:epcglobal:epcis:wsdl:1")
17 public class EPCglobalEPCISService extends Service {
18
19 public final static URL WSDL_LOCATION;
20 public final static QName SERVICE = new QName("urn:epcglobal:epcis:wsdl:1", "EPCglobalEPCISService");
21 public final static QName EPCglobalEPCISServicePort = new QName("urn:epcglobal:epcis:wsdl:1",
22 "EPCglobalEPCISServicePort");
23
24 static {
25 URL url = null;
26 try {
27 url = new URL("http://demo.fosstrak.org/epcis/query?wsdl");
28 } catch (MalformedURLException e) {
29 System.err.println("Can not initialize the default wsdl from http://demo.fosstrak.org/epcis/query?wsdl");
30 }
31 WSDL_LOCATION = url;
32 }
33
34 public EPCglobalEPCISService(URL wsdlLocation) {
35 super(wsdlLocation, SERVICE);
36 }
37
38 public EPCglobalEPCISService(URL wsdlLocation, QName serviceName) {
39 super(wsdlLocation, serviceName);
40 }
41
42 public EPCglobalEPCISService() {
43 super(WSDL_LOCATION, SERVICE);
44 }
45
46
47
48
49 @WebEndpoint(name = "EPCglobalEPCISServicePort")
50 public EPCISServicePortType getEPCglobalEPCISServicePort() {
51 return super.getPort(EPCglobalEPCISServicePort, EPCISServicePortType.class);
52 }
53
54
55
56
57
58
59
60
61
62 @WebEndpoint(name = "EPCglobalEPCISServicePort")
63 public EPCISServicePortType getEPCglobalEPCISServicePort(WebServiceFeature... features) {
64 return super.getPort(EPCglobalEPCISServicePort, EPCISServicePortType.class, features);
65 }
66
67 }