1
2
3
4
5
6
7 package net.webservicex;
8
9 import java.net.MalformedURLException;
10 import java.net.URL;
11 import javax.xml.namespace.QName;
12 import javax.xml.ws.WebEndpoint;
13 import javax.xml.ws.WebServiceClient;
14 import javax.xml.ws.WebServiceFeature;
15 import javax.xml.ws.Service;
16
17
18
19
20
21
22
23
24
25 @WebServiceClient(name = "StockQuote",
26 wsdlLocation = "file:stockquote.wsdl",
27 targetNamespace = "http://www.webserviceX.NET/")
28 public class StockQuote extends Service {
29
30 public final static URL WSDL_LOCATION;
31 public final static QName SERVICE = new QName("http://www.webserviceX.NET/", "StockQuote");
32 public final static QName StockQuoteHttpPost = new QName("http://www.webserviceX.NET/", "StockQuoteHttpPost");
33 public final static QName StockQuoteSoap = new QName("http://www.webserviceX.NET/", "StockQuoteSoap");
34 public final static QName StockQuoteSoap12 = new QName("http://www.webserviceX.NET/", "StockQuoteSoap12");
35 public final static QName StockQuoteHttpGet = new QName("http://www.webserviceX.NET/", "StockQuoteHttpGet");
36 static {
37 URL url = null;
38 try {
39 url = new URL("file:stockquote.wsdl");
40 } catch (MalformedURLException e) {
41 System.err.println("Can not initialize the default wsdl from file:stockquote.wsdl");
42
43 }
44 WSDL_LOCATION = url;
45 }
46
47 public StockQuote(URL wsdlLocation) {
48 super(wsdlLocation, SERVICE);
49 }
50
51 public StockQuote(URL wsdlLocation, QName serviceName) {
52 super(wsdlLocation, serviceName);
53 }
54
55 public StockQuote() {
56 super(WSDL_LOCATION, SERVICE);
57 }
58
59
60
61
62
63
64 @WebEndpoint(name = "StockQuoteHttpPost")
65 public StockQuoteHttpPost getStockQuoteHttpPost() {
66 return super.getPort(StockQuoteHttpPost, StockQuoteHttpPost.class);
67 }
68
69
70
71
72
73
74
75
76 @WebEndpoint(name = "StockQuoteHttpPost")
77 public StockQuoteHttpPost getStockQuoteHttpPost(WebServiceFeature... features) {
78 return super.getPort(StockQuoteHttpPost, StockQuoteHttpPost.class, features);
79 }
80
81
82
83
84
85 @WebEndpoint(name = "StockQuoteSoap")
86 public StockQuoteSoap getStockQuoteSoap() {
87 return super.getPort(StockQuoteSoap, StockQuoteSoap.class);
88 }
89
90
91
92
93
94
95
96
97 @WebEndpoint(name = "StockQuoteSoap")
98 public StockQuoteSoap getStockQuoteSoap(WebServiceFeature... features) {
99 return super.getPort(StockQuoteSoap, StockQuoteSoap.class, features);
100 }
101
102
103
104
105
106 @WebEndpoint(name = "StockQuoteSoap12")
107 public StockQuoteSoap getStockQuoteSoap12() {
108 return super.getPort(StockQuoteSoap12, StockQuoteSoap.class);
109 }
110
111
112
113
114
115
116
117
118 @WebEndpoint(name = "StockQuoteSoap12")
119 public StockQuoteSoap getStockQuoteSoap12(WebServiceFeature... features) {
120 return super.getPort(StockQuoteSoap12, StockQuoteSoap.class, features);
121 }
122
123
124
125
126
127 @WebEndpoint(name = "StockQuoteHttpGet")
128 public StockQuoteHttpGet getStockQuoteHttpGet() {
129 return super.getPort(StockQuoteHttpGet, StockQuoteHttpGet.class);
130 }
131
132
133
134
135
136
137
138
139 @WebEndpoint(name = "StockQuoteHttpGet")
140 public StockQuoteHttpGet getStockQuoteHttpGet(WebServiceFeature... features) {
141 return super.getPort(StockQuoteHttpGet, StockQuoteHttpGet.class, features);
142 }
143
144 }