soap-object 0.6.3 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,89 +1,89 @@
1
- class TestServiceWithWsdl
2
- include SoapObject
3
-
4
- wsdl 'http://www.webservicex.net/uszip.asmx?WSDL'
5
- log_level :error
6
-
7
- def get_zip_code_info(zip_code)
8
- get_info_by_zip 'USZip' => zip_code
9
- end
10
-
11
- def state
12
- message[:state]
13
- end
14
-
15
- def city
16
- message[:city]
17
- end
18
-
19
- def area_code
20
- message[:area_code]
21
- end
22
-
23
- private
24
-
25
- def message
26
- body[:get_info_by_zip_response][:get_info_by_zip_result][:new_data_set][:table]
27
- end
28
- end
29
-
30
- class TestServiceWithLocalWsdl
31
- include SoapObject
32
-
33
- wsdl "#{File.dirname(__FILE__)}/../wsdl/uszip.asmx.wsdl"
34
- end
35
-
36
- class TestDefineService
37
- include SoapObject
38
-
39
- wsdl "http://services.aonaware.com/DictService/DictService.asmx?WSDL"
40
- log_level :error
41
-
42
- def definition_for(word)
43
- define word: word
44
- end
45
- end
46
-
47
-
48
- Given /^I have the url for a remote wsdl$/ do
49
- @cls = TestServiceWithWsdl
50
- end
51
-
52
- Given /^I have a wsdl file residing locally$/ do
53
- @cls = TestServiceWithLocalWsdl
54
- end
55
-
56
- When /^I create an instance of the SoapObject class$/ do
57
- @so = @cls.new
58
- end
59
-
60
- Then /^I should have a connection$/ do
61
- expect(@so).to be_connected
62
- end
63
-
64
- Then /^I should be able to determine the operations$/ do
65
- expect(@so.operations).to include :get_info_by_zip
66
- end
67
-
68
- Then /^I should be able to make a call and receive the correct results$/ do
69
- @so.get_zip_code_info(90210)
70
- expect(@so.state).to eq('CA')
71
- expect(@so.city).to eq('Beverly Hills')
72
- expect(@so.area_code).to eq('310')
73
- end
74
-
75
- Then /^the results xml should contain "(.*?)"$/ do |xml|
76
- expect(@so.to_xml).to include xml
77
- end
78
-
79
- Then /^the results doc should be a Nokogiri XML object$/ do
80
- expect(@so.doc).to be_instance_of Nokogiri::XML::Document
81
- end
82
-
83
- Given /^I am calling the Define service$/ do
84
- @cls = TestDefineService
85
- end
86
-
87
- Then /^I should be able to get the correct definition results$/ do
88
- @so.definition_for 'Cheese'
89
- end
1
+ class TestServiceWithWsdl
2
+ include SoapObject
3
+
4
+ wsdl 'http://www.webservicex.net/uszip.asmx?WSDL'
5
+ log_level :error
6
+
7
+ def get_zip_code_info(zip_code)
8
+ get_info_by_zip 'USZip' => zip_code
9
+ end
10
+
11
+ def state
12
+ message[:state]
13
+ end
14
+
15
+ def city
16
+ message[:city]
17
+ end
18
+
19
+ def area_code
20
+ message[:area_code]
21
+ end
22
+
23
+ private
24
+
25
+ def message
26
+ body[:get_info_by_zip_response][:get_info_by_zip_result][:new_data_set][:table]
27
+ end
28
+ end
29
+
30
+ class TestServiceWithLocalWsdl
31
+ include SoapObject
32
+
33
+ wsdl "#{File.dirname(__FILE__)}/../wsdl/uszip.asmx.wsdl"
34
+ end
35
+
36
+ class TestDefineService
37
+ include SoapObject
38
+
39
+ wsdl "http://services.aonaware.com/DictService/DictService.asmx?WSDL"
40
+ log_level :error
41
+
42
+ def definition_for(word)
43
+ define word: word
44
+ end
45
+ end
46
+
47
+
48
+ Given /^I have the url for a remote wsdl$/ do
49
+ @cls = TestServiceWithWsdl
50
+ end
51
+
52
+ Given /^I have a wsdl file residing locally$/ do
53
+ @cls = TestServiceWithLocalWsdl
54
+ end
55
+
56
+ When /^I create an instance of the SoapObject class$/ do
57
+ @so = @cls.new
58
+ end
59
+
60
+ Then /^I should have a connection$/ do
61
+ expect(@so).to be_connected
62
+ end
63
+
64
+ Then /^I should be able to determine the operations$/ do
65
+ expect(@so.operations).to include :get_info_by_zip
66
+ end
67
+
68
+ Then /^I should be able to make a call and receive the correct results$/ do
69
+ @so.get_zip_code_info(90210)
70
+ expect(@so.state).to eq('CA')
71
+ expect(@so.city).to eq('Beverly Hills')
72
+ expect(@so.area_code).to eq('310')
73
+ end
74
+
75
+ Then /^the results xml should contain "(.*?)"$/ do |xml|
76
+ expect(@so.to_xml).to include xml
77
+ end
78
+
79
+ Then /^the results doc should be a Nokogiri XML object$/ do
80
+ expect(@so.doc).to be_instance_of Nokogiri::XML::Document
81
+ end
82
+
83
+ Given /^I am calling the Define service$/ do
84
+ @cls = TestDefineService
85
+ end
86
+
87
+ Then /^I should be able to get the correct definition results$/ do
88
+ @so.definition_for 'Cheese'
89
+ end
@@ -1,5 +1,5 @@
1
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', '..', 'lib'))
2
-
3
- require 'rspec/expectations'
4
- require 'soap-object'
5
- require 'nokogiri'
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', '..', 'lib'))
2
+
3
+ require 'rspec/expectations'
4
+ require 'soap-object'
5
+ require 'nokogiri'
@@ -1,395 +1,395 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.webserviceX.NET" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://www.webserviceX.NET" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
3
- <wsdl:types>
4
- <s:schema elementFormDefault="qualified" targetNamespace="http://www.webserviceX.NET">
5
- <s:element name="GetInfoByZIP">
6
- <s:complexType>
7
- <s:sequence>
8
- <s:element minOccurs="0" maxOccurs="1" name="USZip" type="s:string" />
9
- </s:sequence>
10
- </s:complexType>
11
- </s:element>
12
- <s:element name="GetInfoByZIPResponse">
13
- <s:complexType>
14
- <s:sequence>
15
- <s:element minOccurs="0" maxOccurs="1" name="GetInfoByZIPResult">
16
- <s:complexType mixed="true">
17
- <s:sequence>
18
- <s:any />
19
- </s:sequence>
20
- </s:complexType>
21
- </s:element>
22
- </s:sequence>
23
- </s:complexType>
24
- </s:element>
25
- <s:element name="GetInfoByCity">
26
- <s:complexType>
27
- <s:sequence>
28
- <s:element minOccurs="0" maxOccurs="1" name="USCity" type="s:string" />
29
- </s:sequence>
30
- </s:complexType>
31
- </s:element>
32
- <s:element name="GetInfoByCityResponse">
33
- <s:complexType>
34
- <s:sequence>
35
- <s:element minOccurs="0" maxOccurs="1" name="GetInfoByCityResult">
36
- <s:complexType mixed="true">
37
- <s:sequence>
38
- <s:any />
39
- </s:sequence>
40
- </s:complexType>
41
- </s:element>
42
- </s:sequence>
43
- </s:complexType>
44
- </s:element>
45
- <s:element name="GetInfoByState">
46
- <s:complexType>
47
- <s:sequence>
48
- <s:element minOccurs="0" maxOccurs="1" name="USState" type="s:string" />
49
- </s:sequence>
50
- </s:complexType>
51
- </s:element>
52
- <s:element name="GetInfoByStateResponse">
53
- <s:complexType>
54
- <s:sequence>
55
- <s:element minOccurs="0" maxOccurs="1" name="GetInfoByStateResult">
56
- <s:complexType mixed="true">
57
- <s:sequence>
58
- <s:any />
59
- </s:sequence>
60
- </s:complexType>
61
- </s:element>
62
- </s:sequence>
63
- </s:complexType>
64
- </s:element>
65
- <s:element name="GetInfoByAreaCode">
66
- <s:complexType>
67
- <s:sequence>
68
- <s:element minOccurs="0" maxOccurs="1" name="USAreaCode" type="s:string" />
69
- </s:sequence>
70
- </s:complexType>
71
- </s:element>
72
- <s:element name="GetInfoByAreaCodeResponse">
73
- <s:complexType>
74
- <s:sequence>
75
- <s:element minOccurs="0" maxOccurs="1" name="GetInfoByAreaCodeResult">
76
- <s:complexType mixed="true">
77
- <s:sequence>
78
- <s:any />
79
- </s:sequence>
80
- </s:complexType>
81
- </s:element>
82
- </s:sequence>
83
- </s:complexType>
84
- </s:element>
85
- </s:schema>
86
- </wsdl:types>
87
- <wsdl:message name="GetInfoByZIPSoapIn">
88
- <wsdl:part name="parameters" element="tns:GetInfoByZIP" />
89
- </wsdl:message>
90
- <wsdl:message name="GetInfoByZIPSoapOut">
91
- <wsdl:part name="parameters" element="tns:GetInfoByZIPResponse" />
92
- </wsdl:message>
93
- <wsdl:message name="GetInfoByCitySoapIn">
94
- <wsdl:part name="parameters" element="tns:GetInfoByCity" />
95
- </wsdl:message>
96
- <wsdl:message name="GetInfoByCitySoapOut">
97
- <wsdl:part name="parameters" element="tns:GetInfoByCityResponse" />
98
- </wsdl:message>
99
- <wsdl:message name="GetInfoByStateSoapIn">
100
- <wsdl:part name="parameters" element="tns:GetInfoByState" />
101
- </wsdl:message>
102
- <wsdl:message name="GetInfoByStateSoapOut">
103
- <wsdl:part name="parameters" element="tns:GetInfoByStateResponse" />
104
- </wsdl:message>
105
- <wsdl:message name="GetInfoByAreaCodeSoapIn">
106
- <wsdl:part name="parameters" element="tns:GetInfoByAreaCode" />
107
- </wsdl:message>
108
- <wsdl:message name="GetInfoByAreaCodeSoapOut">
109
- <wsdl:part name="parameters" element="tns:GetInfoByAreaCodeResponse" />
110
- </wsdl:message>
111
- <wsdl:message name="GetInfoByZIPHttpGetIn">
112
- <wsdl:part name="USZip" type="s:string" />
113
- </wsdl:message>
114
- <wsdl:message name="GetInfoByZIPHttpGetOut">
115
- <wsdl:part name="Body" />
116
- </wsdl:message>
117
- <wsdl:message name="GetInfoByCityHttpGetIn">
118
- <wsdl:part name="USCity" type="s:string" />
119
- </wsdl:message>
120
- <wsdl:message name="GetInfoByCityHttpGetOut">
121
- <wsdl:part name="Body" />
122
- </wsdl:message>
123
- <wsdl:message name="GetInfoByStateHttpGetIn">
124
- <wsdl:part name="USState" type="s:string" />
125
- </wsdl:message>
126
- <wsdl:message name="GetInfoByStateHttpGetOut">
127
- <wsdl:part name="Body" />
128
- </wsdl:message>
129
- <wsdl:message name="GetInfoByAreaCodeHttpGetIn">
130
- <wsdl:part name="USAreaCode" type="s:string" />
131
- </wsdl:message>
132
- <wsdl:message name="GetInfoByAreaCodeHttpGetOut">
133
- <wsdl:part name="Body" />
134
- </wsdl:message>
135
- <wsdl:message name="GetInfoByZIPHttpPostIn">
136
- <wsdl:part name="USZip" type="s:string" />
137
- </wsdl:message>
138
- <wsdl:message name="GetInfoByZIPHttpPostOut">
139
- <wsdl:part name="Body" />
140
- </wsdl:message>
141
- <wsdl:message name="GetInfoByCityHttpPostIn">
142
- <wsdl:part name="USCity" type="s:string" />
143
- </wsdl:message>
144
- <wsdl:message name="GetInfoByCityHttpPostOut">
145
- <wsdl:part name="Body" />
146
- </wsdl:message>
147
- <wsdl:message name="GetInfoByStateHttpPostIn">
148
- <wsdl:part name="USState" type="s:string" />
149
- </wsdl:message>
150
- <wsdl:message name="GetInfoByStateHttpPostOut">
151
- <wsdl:part name="Body" />
152
- </wsdl:message>
153
- <wsdl:message name="GetInfoByAreaCodeHttpPostIn">
154
- <wsdl:part name="USAreaCode" type="s:string" />
155
- </wsdl:message>
156
- <wsdl:message name="GetInfoByAreaCodeHttpPostOut">
157
- <wsdl:part name="Body" />
158
- </wsdl:message>
159
- <wsdl:portType name="USZipSoap">
160
- <wsdl:operation name="GetInfoByZIP">
161
- <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get State Code,City,Area Code,Time Zone,Zip Code by Zip Code</wsdl:documentation>
162
- <wsdl:input message="tns:GetInfoByZIPSoapIn" />
163
- <wsdl:output message="tns:GetInfoByZIPSoapOut" />
164
- </wsdl:operation>
165
- <wsdl:operation name="GetInfoByCity">
166
- <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get State Code,City,Area Code,Time Zone,Zip Code by City</wsdl:documentation>
167
- <wsdl:input message="tns:GetInfoByCitySoapIn" />
168
- <wsdl:output message="tns:GetInfoByCitySoapOut" />
169
- </wsdl:operation>
170
- <wsdl:operation name="GetInfoByState">
171
- <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get State Code,City,Area Code,Time Zone,Zip Code by state</wsdl:documentation>
172
- <wsdl:input message="tns:GetInfoByStateSoapIn" />
173
- <wsdl:output message="tns:GetInfoByStateSoapOut" />
174
- </wsdl:operation>
175
- <wsdl:operation name="GetInfoByAreaCode">
176
- <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get State Code,City,Area Code,Time Zone,Zip Code by Area Code</wsdl:documentation>
177
- <wsdl:input message="tns:GetInfoByAreaCodeSoapIn" />
178
- <wsdl:output message="tns:GetInfoByAreaCodeSoapOut" />
179
- </wsdl:operation>
180
- </wsdl:portType>
181
- <wsdl:portType name="USZipHttpGet">
182
- <wsdl:operation name="GetInfoByZIP">
183
- <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get State Code,City,Area Code,Time Zone,Zip Code by Zip Code</wsdl:documentation>
184
- <wsdl:input message="tns:GetInfoByZIPHttpGetIn" />
185
- <wsdl:output message="tns:GetInfoByZIPHttpGetOut" />
186
- </wsdl:operation>
187
- <wsdl:operation name="GetInfoByCity">
188
- <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get State Code,City,Area Code,Time Zone,Zip Code by City</wsdl:documentation>
189
- <wsdl:input message="tns:GetInfoByCityHttpGetIn" />
190
- <wsdl:output message="tns:GetInfoByCityHttpGetOut" />
191
- </wsdl:operation>
192
- <wsdl:operation name="GetInfoByState">
193
- <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get State Code,City,Area Code,Time Zone,Zip Code by state</wsdl:documentation>
194
- <wsdl:input message="tns:GetInfoByStateHttpGetIn" />
195
- <wsdl:output message="tns:GetInfoByStateHttpGetOut" />
196
- </wsdl:operation>
197
- <wsdl:operation name="GetInfoByAreaCode">
198
- <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get State Code,City,Area Code,Time Zone,Zip Code by Area Code</wsdl:documentation>
199
- <wsdl:input message="tns:GetInfoByAreaCodeHttpGetIn" />
200
- <wsdl:output message="tns:GetInfoByAreaCodeHttpGetOut" />
201
- </wsdl:operation>
202
- </wsdl:portType>
203
- <wsdl:portType name="USZipHttpPost">
204
- <wsdl:operation name="GetInfoByZIP">
205
- <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get State Code,City,Area Code,Time Zone,Zip Code by Zip Code</wsdl:documentation>
206
- <wsdl:input message="tns:GetInfoByZIPHttpPostIn" />
207
- <wsdl:output message="tns:GetInfoByZIPHttpPostOut" />
208
- </wsdl:operation>
209
- <wsdl:operation name="GetInfoByCity">
210
- <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get State Code,City,Area Code,Time Zone,Zip Code by City</wsdl:documentation>
211
- <wsdl:input message="tns:GetInfoByCityHttpPostIn" />
212
- <wsdl:output message="tns:GetInfoByCityHttpPostOut" />
213
- </wsdl:operation>
214
- <wsdl:operation name="GetInfoByState">
215
- <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get State Code,City,Area Code,Time Zone,Zip Code by state</wsdl:documentation>
216
- <wsdl:input message="tns:GetInfoByStateHttpPostIn" />
217
- <wsdl:output message="tns:GetInfoByStateHttpPostOut" />
218
- </wsdl:operation>
219
- <wsdl:operation name="GetInfoByAreaCode">
220
- <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get State Code,City,Area Code,Time Zone,Zip Code by Area Code</wsdl:documentation>
221
- <wsdl:input message="tns:GetInfoByAreaCodeHttpPostIn" />
222
- <wsdl:output message="tns:GetInfoByAreaCodeHttpPostOut" />
223
- </wsdl:operation>
224
- </wsdl:portType>
225
- <wsdl:binding name="USZipSoap" type="tns:USZipSoap">
226
- <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
227
- <wsdl:operation name="GetInfoByZIP">
228
- <soap:operation soapAction="http://www.webserviceX.NET/GetInfoByZIP" style="document" />
229
- <wsdl:input>
230
- <soap:body use="literal" />
231
- </wsdl:input>
232
- <wsdl:output>
233
- <soap:body use="literal" />
234
- </wsdl:output>
235
- </wsdl:operation>
236
- <wsdl:operation name="GetInfoByCity">
237
- <soap:operation soapAction="http://www.webserviceX.NET/GetInfoByCity" style="document" />
238
- <wsdl:input>
239
- <soap:body use="literal" />
240
- </wsdl:input>
241
- <wsdl:output>
242
- <soap:body use="literal" />
243
- </wsdl:output>
244
- </wsdl:operation>
245
- <wsdl:operation name="GetInfoByState">
246
- <soap:operation soapAction="http://www.webserviceX.NET/GetInfoByState" style="document" />
247
- <wsdl:input>
248
- <soap:body use="literal" />
249
- </wsdl:input>
250
- <wsdl:output>
251
- <soap:body use="literal" />
252
- </wsdl:output>
253
- </wsdl:operation>
254
- <wsdl:operation name="GetInfoByAreaCode">
255
- <soap:operation soapAction="http://www.webserviceX.NET/GetInfoByAreaCode" style="document" />
256
- <wsdl:input>
257
- <soap:body use="literal" />
258
- </wsdl:input>
259
- <wsdl:output>
260
- <soap:body use="literal" />
261
- </wsdl:output>
262
- </wsdl:operation>
263
- </wsdl:binding>
264
- <wsdl:binding name="USZipSoap12" type="tns:USZipSoap">
265
- <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
266
- <wsdl:operation name="GetInfoByZIP">
267
- <soap12:operation soapAction="http://www.webserviceX.NET/GetInfoByZIP" style="document" />
268
- <wsdl:input>
269
- <soap12:body use="literal" />
270
- </wsdl:input>
271
- <wsdl:output>
272
- <soap12:body use="literal" />
273
- </wsdl:output>
274
- </wsdl:operation>
275
- <wsdl:operation name="GetInfoByCity">
276
- <soap12:operation soapAction="http://www.webserviceX.NET/GetInfoByCity" style="document" />
277
- <wsdl:input>
278
- <soap12:body use="literal" />
279
- </wsdl:input>
280
- <wsdl:output>
281
- <soap12:body use="literal" />
282
- </wsdl:output>
283
- </wsdl:operation>
284
- <wsdl:operation name="GetInfoByState">
285
- <soap12:operation soapAction="http://www.webserviceX.NET/GetInfoByState" style="document" />
286
- <wsdl:input>
287
- <soap12:body use="literal" />
288
- </wsdl:input>
289
- <wsdl:output>
290
- <soap12:body use="literal" />
291
- </wsdl:output>
292
- </wsdl:operation>
293
- <wsdl:operation name="GetInfoByAreaCode">
294
- <soap12:operation soapAction="http://www.webserviceX.NET/GetInfoByAreaCode" style="document" />
295
- <wsdl:input>
296
- <soap12:body use="literal" />
297
- </wsdl:input>
298
- <wsdl:output>
299
- <soap12:body use="literal" />
300
- </wsdl:output>
301
- </wsdl:operation>
302
- </wsdl:binding>
303
- <wsdl:binding name="USZipHttpGet" type="tns:USZipHttpGet">
304
- <http:binding verb="GET" />
305
- <wsdl:operation name="GetInfoByZIP">
306
- <http:operation location="/GetInfoByZIP" />
307
- <wsdl:input>
308
- <http:urlEncoded />
309
- </wsdl:input>
310
- <wsdl:output>
311
- <mime:content part="Body" type="text/xml" />
312
- </wsdl:output>
313
- </wsdl:operation>
314
- <wsdl:operation name="GetInfoByCity">
315
- <http:operation location="/GetInfoByCity" />
316
- <wsdl:input>
317
- <http:urlEncoded />
318
- </wsdl:input>
319
- <wsdl:output>
320
- <mime:content part="Body" type="text/xml" />
321
- </wsdl:output>
322
- </wsdl:operation>
323
- <wsdl:operation name="GetInfoByState">
324
- <http:operation location="/GetInfoByState" />
325
- <wsdl:input>
326
- <http:urlEncoded />
327
- </wsdl:input>
328
- <wsdl:output>
329
- <mime:content part="Body" type="text/xml" />
330
- </wsdl:output>
331
- </wsdl:operation>
332
- <wsdl:operation name="GetInfoByAreaCode">
333
- <http:operation location="/GetInfoByAreaCode" />
334
- <wsdl:input>
335
- <http:urlEncoded />
336
- </wsdl:input>
337
- <wsdl:output>
338
- <mime:content part="Body" type="text/xml" />
339
- </wsdl:output>
340
- </wsdl:operation>
341
- </wsdl:binding>
342
- <wsdl:binding name="USZipHttpPost" type="tns:USZipHttpPost">
343
- <http:binding verb="POST" />
344
- <wsdl:operation name="GetInfoByZIP">
345
- <http:operation location="/GetInfoByZIP" />
346
- <wsdl:input>
347
- <mime:content type="application/x-www-form-urlencoded" />
348
- </wsdl:input>
349
- <wsdl:output>
350
- <mime:content part="Body" type="text/xml" />
351
- </wsdl:output>
352
- </wsdl:operation>
353
- <wsdl:operation name="GetInfoByCity">
354
- <http:operation location="/GetInfoByCity" />
355
- <wsdl:input>
356
- <mime:content type="application/x-www-form-urlencoded" />
357
- </wsdl:input>
358
- <wsdl:output>
359
- <mime:content part="Body" type="text/xml" />
360
- </wsdl:output>
361
- </wsdl:operation>
362
- <wsdl:operation name="GetInfoByState">
363
- <http:operation location="/GetInfoByState" />
364
- <wsdl:input>
365
- <mime:content type="application/x-www-form-urlencoded" />
366
- </wsdl:input>
367
- <wsdl:output>
368
- <mime:content part="Body" type="text/xml" />
369
- </wsdl:output>
370
- </wsdl:operation>
371
- <wsdl:operation name="GetInfoByAreaCode">
372
- <http:operation location="/GetInfoByAreaCode" />
373
- <wsdl:input>
374
- <mime:content type="application/x-www-form-urlencoded" />
375
- </wsdl:input>
376
- <wsdl:output>
377
- <mime:content part="Body" type="text/xml" />
378
- </wsdl:output>
379
- </wsdl:operation>
380
- </wsdl:binding>
381
- <wsdl:service name="USZip">
382
- <wsdl:port name="USZipSoap" binding="tns:USZipSoap">
383
- <soap:address location="http://www.webservicex.net/uszip.asmx" />
384
- </wsdl:port>
385
- <wsdl:port name="USZipSoap12" binding="tns:USZipSoap12">
386
- <soap12:address location="http://www.webservicex.net/uszip.asmx" />
387
- </wsdl:port>
388
- <wsdl:port name="USZipHttpGet" binding="tns:USZipHttpGet">
389
- <http:address location="http://www.webservicex.net/uszip.asmx" />
390
- </wsdl:port>
391
- <wsdl:port name="USZipHttpPost" binding="tns:USZipHttpPost">
392
- <http:address location="http://www.webservicex.net/uszip.asmx" />
393
- </wsdl:port>
394
- </wsdl:service>
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.webserviceX.NET" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://www.webserviceX.NET" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
3
+ <wsdl:types>
4
+ <s:schema elementFormDefault="qualified" targetNamespace="http://www.webserviceX.NET">
5
+ <s:element name="GetInfoByZIP">
6
+ <s:complexType>
7
+ <s:sequence>
8
+ <s:element minOccurs="0" maxOccurs="1" name="USZip" type="s:string" />
9
+ </s:sequence>
10
+ </s:complexType>
11
+ </s:element>
12
+ <s:element name="GetInfoByZIPResponse">
13
+ <s:complexType>
14
+ <s:sequence>
15
+ <s:element minOccurs="0" maxOccurs="1" name="GetInfoByZIPResult">
16
+ <s:complexType mixed="true">
17
+ <s:sequence>
18
+ <s:any />
19
+ </s:sequence>
20
+ </s:complexType>
21
+ </s:element>
22
+ </s:sequence>
23
+ </s:complexType>
24
+ </s:element>
25
+ <s:element name="GetInfoByCity">
26
+ <s:complexType>
27
+ <s:sequence>
28
+ <s:element minOccurs="0" maxOccurs="1" name="USCity" type="s:string" />
29
+ </s:sequence>
30
+ </s:complexType>
31
+ </s:element>
32
+ <s:element name="GetInfoByCityResponse">
33
+ <s:complexType>
34
+ <s:sequence>
35
+ <s:element minOccurs="0" maxOccurs="1" name="GetInfoByCityResult">
36
+ <s:complexType mixed="true">
37
+ <s:sequence>
38
+ <s:any />
39
+ </s:sequence>
40
+ </s:complexType>
41
+ </s:element>
42
+ </s:sequence>
43
+ </s:complexType>
44
+ </s:element>
45
+ <s:element name="GetInfoByState">
46
+ <s:complexType>
47
+ <s:sequence>
48
+ <s:element minOccurs="0" maxOccurs="1" name="USState" type="s:string" />
49
+ </s:sequence>
50
+ </s:complexType>
51
+ </s:element>
52
+ <s:element name="GetInfoByStateResponse">
53
+ <s:complexType>
54
+ <s:sequence>
55
+ <s:element minOccurs="0" maxOccurs="1" name="GetInfoByStateResult">
56
+ <s:complexType mixed="true">
57
+ <s:sequence>
58
+ <s:any />
59
+ </s:sequence>
60
+ </s:complexType>
61
+ </s:element>
62
+ </s:sequence>
63
+ </s:complexType>
64
+ </s:element>
65
+ <s:element name="GetInfoByAreaCode">
66
+ <s:complexType>
67
+ <s:sequence>
68
+ <s:element minOccurs="0" maxOccurs="1" name="USAreaCode" type="s:string" />
69
+ </s:sequence>
70
+ </s:complexType>
71
+ </s:element>
72
+ <s:element name="GetInfoByAreaCodeResponse">
73
+ <s:complexType>
74
+ <s:sequence>
75
+ <s:element minOccurs="0" maxOccurs="1" name="GetInfoByAreaCodeResult">
76
+ <s:complexType mixed="true">
77
+ <s:sequence>
78
+ <s:any />
79
+ </s:sequence>
80
+ </s:complexType>
81
+ </s:element>
82
+ </s:sequence>
83
+ </s:complexType>
84
+ </s:element>
85
+ </s:schema>
86
+ </wsdl:types>
87
+ <wsdl:message name="GetInfoByZIPSoapIn">
88
+ <wsdl:part name="parameters" element="tns:GetInfoByZIP" />
89
+ </wsdl:message>
90
+ <wsdl:message name="GetInfoByZIPSoapOut">
91
+ <wsdl:part name="parameters" element="tns:GetInfoByZIPResponse" />
92
+ </wsdl:message>
93
+ <wsdl:message name="GetInfoByCitySoapIn">
94
+ <wsdl:part name="parameters" element="tns:GetInfoByCity" />
95
+ </wsdl:message>
96
+ <wsdl:message name="GetInfoByCitySoapOut">
97
+ <wsdl:part name="parameters" element="tns:GetInfoByCityResponse" />
98
+ </wsdl:message>
99
+ <wsdl:message name="GetInfoByStateSoapIn">
100
+ <wsdl:part name="parameters" element="tns:GetInfoByState" />
101
+ </wsdl:message>
102
+ <wsdl:message name="GetInfoByStateSoapOut">
103
+ <wsdl:part name="parameters" element="tns:GetInfoByStateResponse" />
104
+ </wsdl:message>
105
+ <wsdl:message name="GetInfoByAreaCodeSoapIn">
106
+ <wsdl:part name="parameters" element="tns:GetInfoByAreaCode" />
107
+ </wsdl:message>
108
+ <wsdl:message name="GetInfoByAreaCodeSoapOut">
109
+ <wsdl:part name="parameters" element="tns:GetInfoByAreaCodeResponse" />
110
+ </wsdl:message>
111
+ <wsdl:message name="GetInfoByZIPHttpGetIn">
112
+ <wsdl:part name="USZip" type="s:string" />
113
+ </wsdl:message>
114
+ <wsdl:message name="GetInfoByZIPHttpGetOut">
115
+ <wsdl:part name="Body" />
116
+ </wsdl:message>
117
+ <wsdl:message name="GetInfoByCityHttpGetIn">
118
+ <wsdl:part name="USCity" type="s:string" />
119
+ </wsdl:message>
120
+ <wsdl:message name="GetInfoByCityHttpGetOut">
121
+ <wsdl:part name="Body" />
122
+ </wsdl:message>
123
+ <wsdl:message name="GetInfoByStateHttpGetIn">
124
+ <wsdl:part name="USState" type="s:string" />
125
+ </wsdl:message>
126
+ <wsdl:message name="GetInfoByStateHttpGetOut">
127
+ <wsdl:part name="Body" />
128
+ </wsdl:message>
129
+ <wsdl:message name="GetInfoByAreaCodeHttpGetIn">
130
+ <wsdl:part name="USAreaCode" type="s:string" />
131
+ </wsdl:message>
132
+ <wsdl:message name="GetInfoByAreaCodeHttpGetOut">
133
+ <wsdl:part name="Body" />
134
+ </wsdl:message>
135
+ <wsdl:message name="GetInfoByZIPHttpPostIn">
136
+ <wsdl:part name="USZip" type="s:string" />
137
+ </wsdl:message>
138
+ <wsdl:message name="GetInfoByZIPHttpPostOut">
139
+ <wsdl:part name="Body" />
140
+ </wsdl:message>
141
+ <wsdl:message name="GetInfoByCityHttpPostIn">
142
+ <wsdl:part name="USCity" type="s:string" />
143
+ </wsdl:message>
144
+ <wsdl:message name="GetInfoByCityHttpPostOut">
145
+ <wsdl:part name="Body" />
146
+ </wsdl:message>
147
+ <wsdl:message name="GetInfoByStateHttpPostIn">
148
+ <wsdl:part name="USState" type="s:string" />
149
+ </wsdl:message>
150
+ <wsdl:message name="GetInfoByStateHttpPostOut">
151
+ <wsdl:part name="Body" />
152
+ </wsdl:message>
153
+ <wsdl:message name="GetInfoByAreaCodeHttpPostIn">
154
+ <wsdl:part name="USAreaCode" type="s:string" />
155
+ </wsdl:message>
156
+ <wsdl:message name="GetInfoByAreaCodeHttpPostOut">
157
+ <wsdl:part name="Body" />
158
+ </wsdl:message>
159
+ <wsdl:portType name="USZipSoap">
160
+ <wsdl:operation name="GetInfoByZIP">
161
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get State Code,City,Area Code,Time Zone,Zip Code by Zip Code</wsdl:documentation>
162
+ <wsdl:input message="tns:GetInfoByZIPSoapIn" />
163
+ <wsdl:output message="tns:GetInfoByZIPSoapOut" />
164
+ </wsdl:operation>
165
+ <wsdl:operation name="GetInfoByCity">
166
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get State Code,City,Area Code,Time Zone,Zip Code by City</wsdl:documentation>
167
+ <wsdl:input message="tns:GetInfoByCitySoapIn" />
168
+ <wsdl:output message="tns:GetInfoByCitySoapOut" />
169
+ </wsdl:operation>
170
+ <wsdl:operation name="GetInfoByState">
171
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get State Code,City,Area Code,Time Zone,Zip Code by state</wsdl:documentation>
172
+ <wsdl:input message="tns:GetInfoByStateSoapIn" />
173
+ <wsdl:output message="tns:GetInfoByStateSoapOut" />
174
+ </wsdl:operation>
175
+ <wsdl:operation name="GetInfoByAreaCode">
176
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get State Code,City,Area Code,Time Zone,Zip Code by Area Code</wsdl:documentation>
177
+ <wsdl:input message="tns:GetInfoByAreaCodeSoapIn" />
178
+ <wsdl:output message="tns:GetInfoByAreaCodeSoapOut" />
179
+ </wsdl:operation>
180
+ </wsdl:portType>
181
+ <wsdl:portType name="USZipHttpGet">
182
+ <wsdl:operation name="GetInfoByZIP">
183
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get State Code,City,Area Code,Time Zone,Zip Code by Zip Code</wsdl:documentation>
184
+ <wsdl:input message="tns:GetInfoByZIPHttpGetIn" />
185
+ <wsdl:output message="tns:GetInfoByZIPHttpGetOut" />
186
+ </wsdl:operation>
187
+ <wsdl:operation name="GetInfoByCity">
188
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get State Code,City,Area Code,Time Zone,Zip Code by City</wsdl:documentation>
189
+ <wsdl:input message="tns:GetInfoByCityHttpGetIn" />
190
+ <wsdl:output message="tns:GetInfoByCityHttpGetOut" />
191
+ </wsdl:operation>
192
+ <wsdl:operation name="GetInfoByState">
193
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get State Code,City,Area Code,Time Zone,Zip Code by state</wsdl:documentation>
194
+ <wsdl:input message="tns:GetInfoByStateHttpGetIn" />
195
+ <wsdl:output message="tns:GetInfoByStateHttpGetOut" />
196
+ </wsdl:operation>
197
+ <wsdl:operation name="GetInfoByAreaCode">
198
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get State Code,City,Area Code,Time Zone,Zip Code by Area Code</wsdl:documentation>
199
+ <wsdl:input message="tns:GetInfoByAreaCodeHttpGetIn" />
200
+ <wsdl:output message="tns:GetInfoByAreaCodeHttpGetOut" />
201
+ </wsdl:operation>
202
+ </wsdl:portType>
203
+ <wsdl:portType name="USZipHttpPost">
204
+ <wsdl:operation name="GetInfoByZIP">
205
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get State Code,City,Area Code,Time Zone,Zip Code by Zip Code</wsdl:documentation>
206
+ <wsdl:input message="tns:GetInfoByZIPHttpPostIn" />
207
+ <wsdl:output message="tns:GetInfoByZIPHttpPostOut" />
208
+ </wsdl:operation>
209
+ <wsdl:operation name="GetInfoByCity">
210
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get State Code,City,Area Code,Time Zone,Zip Code by City</wsdl:documentation>
211
+ <wsdl:input message="tns:GetInfoByCityHttpPostIn" />
212
+ <wsdl:output message="tns:GetInfoByCityHttpPostOut" />
213
+ </wsdl:operation>
214
+ <wsdl:operation name="GetInfoByState">
215
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get State Code,City,Area Code,Time Zone,Zip Code by state</wsdl:documentation>
216
+ <wsdl:input message="tns:GetInfoByStateHttpPostIn" />
217
+ <wsdl:output message="tns:GetInfoByStateHttpPostOut" />
218
+ </wsdl:operation>
219
+ <wsdl:operation name="GetInfoByAreaCode">
220
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get State Code,City,Area Code,Time Zone,Zip Code by Area Code</wsdl:documentation>
221
+ <wsdl:input message="tns:GetInfoByAreaCodeHttpPostIn" />
222
+ <wsdl:output message="tns:GetInfoByAreaCodeHttpPostOut" />
223
+ </wsdl:operation>
224
+ </wsdl:portType>
225
+ <wsdl:binding name="USZipSoap" type="tns:USZipSoap">
226
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
227
+ <wsdl:operation name="GetInfoByZIP">
228
+ <soap:operation soapAction="http://www.webserviceX.NET/GetInfoByZIP" style="document" />
229
+ <wsdl:input>
230
+ <soap:body use="literal" />
231
+ </wsdl:input>
232
+ <wsdl:output>
233
+ <soap:body use="literal" />
234
+ </wsdl:output>
235
+ </wsdl:operation>
236
+ <wsdl:operation name="GetInfoByCity">
237
+ <soap:operation soapAction="http://www.webserviceX.NET/GetInfoByCity" style="document" />
238
+ <wsdl:input>
239
+ <soap:body use="literal" />
240
+ </wsdl:input>
241
+ <wsdl:output>
242
+ <soap:body use="literal" />
243
+ </wsdl:output>
244
+ </wsdl:operation>
245
+ <wsdl:operation name="GetInfoByState">
246
+ <soap:operation soapAction="http://www.webserviceX.NET/GetInfoByState" style="document" />
247
+ <wsdl:input>
248
+ <soap:body use="literal" />
249
+ </wsdl:input>
250
+ <wsdl:output>
251
+ <soap:body use="literal" />
252
+ </wsdl:output>
253
+ </wsdl:operation>
254
+ <wsdl:operation name="GetInfoByAreaCode">
255
+ <soap:operation soapAction="http://www.webserviceX.NET/GetInfoByAreaCode" style="document" />
256
+ <wsdl:input>
257
+ <soap:body use="literal" />
258
+ </wsdl:input>
259
+ <wsdl:output>
260
+ <soap:body use="literal" />
261
+ </wsdl:output>
262
+ </wsdl:operation>
263
+ </wsdl:binding>
264
+ <wsdl:binding name="USZipSoap12" type="tns:USZipSoap">
265
+ <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
266
+ <wsdl:operation name="GetInfoByZIP">
267
+ <soap12:operation soapAction="http://www.webserviceX.NET/GetInfoByZIP" style="document" />
268
+ <wsdl:input>
269
+ <soap12:body use="literal" />
270
+ </wsdl:input>
271
+ <wsdl:output>
272
+ <soap12:body use="literal" />
273
+ </wsdl:output>
274
+ </wsdl:operation>
275
+ <wsdl:operation name="GetInfoByCity">
276
+ <soap12:operation soapAction="http://www.webserviceX.NET/GetInfoByCity" style="document" />
277
+ <wsdl:input>
278
+ <soap12:body use="literal" />
279
+ </wsdl:input>
280
+ <wsdl:output>
281
+ <soap12:body use="literal" />
282
+ </wsdl:output>
283
+ </wsdl:operation>
284
+ <wsdl:operation name="GetInfoByState">
285
+ <soap12:operation soapAction="http://www.webserviceX.NET/GetInfoByState" style="document" />
286
+ <wsdl:input>
287
+ <soap12:body use="literal" />
288
+ </wsdl:input>
289
+ <wsdl:output>
290
+ <soap12:body use="literal" />
291
+ </wsdl:output>
292
+ </wsdl:operation>
293
+ <wsdl:operation name="GetInfoByAreaCode">
294
+ <soap12:operation soapAction="http://www.webserviceX.NET/GetInfoByAreaCode" style="document" />
295
+ <wsdl:input>
296
+ <soap12:body use="literal" />
297
+ </wsdl:input>
298
+ <wsdl:output>
299
+ <soap12:body use="literal" />
300
+ </wsdl:output>
301
+ </wsdl:operation>
302
+ </wsdl:binding>
303
+ <wsdl:binding name="USZipHttpGet" type="tns:USZipHttpGet">
304
+ <http:binding verb="GET" />
305
+ <wsdl:operation name="GetInfoByZIP">
306
+ <http:operation location="/GetInfoByZIP" />
307
+ <wsdl:input>
308
+ <http:urlEncoded />
309
+ </wsdl:input>
310
+ <wsdl:output>
311
+ <mime:content part="Body" type="text/xml" />
312
+ </wsdl:output>
313
+ </wsdl:operation>
314
+ <wsdl:operation name="GetInfoByCity">
315
+ <http:operation location="/GetInfoByCity" />
316
+ <wsdl:input>
317
+ <http:urlEncoded />
318
+ </wsdl:input>
319
+ <wsdl:output>
320
+ <mime:content part="Body" type="text/xml" />
321
+ </wsdl:output>
322
+ </wsdl:operation>
323
+ <wsdl:operation name="GetInfoByState">
324
+ <http:operation location="/GetInfoByState" />
325
+ <wsdl:input>
326
+ <http:urlEncoded />
327
+ </wsdl:input>
328
+ <wsdl:output>
329
+ <mime:content part="Body" type="text/xml" />
330
+ </wsdl:output>
331
+ </wsdl:operation>
332
+ <wsdl:operation name="GetInfoByAreaCode">
333
+ <http:operation location="/GetInfoByAreaCode" />
334
+ <wsdl:input>
335
+ <http:urlEncoded />
336
+ </wsdl:input>
337
+ <wsdl:output>
338
+ <mime:content part="Body" type="text/xml" />
339
+ </wsdl:output>
340
+ </wsdl:operation>
341
+ </wsdl:binding>
342
+ <wsdl:binding name="USZipHttpPost" type="tns:USZipHttpPost">
343
+ <http:binding verb="POST" />
344
+ <wsdl:operation name="GetInfoByZIP">
345
+ <http:operation location="/GetInfoByZIP" />
346
+ <wsdl:input>
347
+ <mime:content type="application/x-www-form-urlencoded" />
348
+ </wsdl:input>
349
+ <wsdl:output>
350
+ <mime:content part="Body" type="text/xml" />
351
+ </wsdl:output>
352
+ </wsdl:operation>
353
+ <wsdl:operation name="GetInfoByCity">
354
+ <http:operation location="/GetInfoByCity" />
355
+ <wsdl:input>
356
+ <mime:content type="application/x-www-form-urlencoded" />
357
+ </wsdl:input>
358
+ <wsdl:output>
359
+ <mime:content part="Body" type="text/xml" />
360
+ </wsdl:output>
361
+ </wsdl:operation>
362
+ <wsdl:operation name="GetInfoByState">
363
+ <http:operation location="/GetInfoByState" />
364
+ <wsdl:input>
365
+ <mime:content type="application/x-www-form-urlencoded" />
366
+ </wsdl:input>
367
+ <wsdl:output>
368
+ <mime:content part="Body" type="text/xml" />
369
+ </wsdl:output>
370
+ </wsdl:operation>
371
+ <wsdl:operation name="GetInfoByAreaCode">
372
+ <http:operation location="/GetInfoByAreaCode" />
373
+ <wsdl:input>
374
+ <mime:content type="application/x-www-form-urlencoded" />
375
+ </wsdl:input>
376
+ <wsdl:output>
377
+ <mime:content part="Body" type="text/xml" />
378
+ </wsdl:output>
379
+ </wsdl:operation>
380
+ </wsdl:binding>
381
+ <wsdl:service name="USZip">
382
+ <wsdl:port name="USZipSoap" binding="tns:USZipSoap">
383
+ <soap:address location="http://www.webservicex.net/uszip.asmx" />
384
+ </wsdl:port>
385
+ <wsdl:port name="USZipSoap12" binding="tns:USZipSoap12">
386
+ <soap12:address location="http://www.webservicex.net/uszip.asmx" />
387
+ </wsdl:port>
388
+ <wsdl:port name="USZipHttpGet" binding="tns:USZipHttpGet">
389
+ <http:address location="http://www.webservicex.net/uszip.asmx" />
390
+ </wsdl:port>
391
+ <wsdl:port name="USZipHttpPost" binding="tns:USZipHttpPost">
392
+ <http:address location="http://www.webservicex.net/uszip.asmx" />
393
+ </wsdl:port>
394
+ </wsdl:service>
395
395
  </wsdl:definitions>