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