1
2 package org.fosstrak.capturingapp.wsdl;
3
4 import java.net.MalformedURLException;
5 import java.net.URL;
6 import javax.xml.namespace.QName;
7 import javax.xml.ws.Service;
8 import javax.xml.ws.WebEndpoint;
9 import javax.xml.ws.WebServiceClient;
10 import org.fosstrak.capturingapp.wsdl.CaptureAppPortType;
11
12
13
14
15
16
17
18
19 @WebServiceClient(name = "CapturingAppService",
20 wsdlLocation = "file:/C:/accada/capturingapp/target/checkout/src/main/resources/wsdl/captureApp.wsdl",
21 targetNamespace = "urn:wsdl:capturingapp:fosstrak:org")
22 public class CapturingAppService extends Service {
23
24 public final static URL WSDL_LOCATION;
25 public final static QName SERVICE = new QName("urn:wsdl:capturingapp:fosstrak:org", "CapturingAppService");
26 public final static QName CaptureAppServicePort = new QName("urn:wsdl:capturingapp:fosstrak:org", "CaptureAppServicePort");
27 static {
28 URL url = null;
29 try {
30 url = new URL("file:/C:/accada/capturingapp/target/checkout/src/main/resources/wsdl/captureApp.wsdl");
31 } catch (MalformedURLException e) {
32 System.err.println("Can not initialize the default wsdl from file:/C:/accada/capturingapp/target/checkout/src/main/resources/wsdl/captureApp.wsdl");
33
34 }
35 WSDL_LOCATION = url;
36 }
37
38 public CapturingAppService(URL wsdlLocation) {
39 super(wsdlLocation, SERVICE);
40 }
41
42 public CapturingAppService(URL wsdlLocation, QName serviceName) {
43 super(wsdlLocation, serviceName);
44 }
45
46 public CapturingAppService() {
47 super(WSDL_LOCATION, SERVICE);
48 }
49
50
51
52
53
54
55 @WebEndpoint(name = "CaptureAppServicePort")
56 public CaptureAppPortType getCaptureAppServicePort() {
57 return super.getPort(CaptureAppServicePort, CaptureAppPortType.class);
58 }
59
60 }