soap-object 0.4 → 0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e4c681942685d461dd8d91e34fa586854e517342
4
+ data.tar.gz: 6c6cc34fd8d89f41e6e748d96981de24f352fee1
5
+ SHA512:
6
+ metadata.gz: 368669696bd18d36c388f40cf76f7bd3722f0a8e7d9069113318522b9667f3f016f80b022c5a0740e6f8f4c0b1a83e9def1be3e78181fd16f6c56087fbd0c5e9
7
+ data.tar.gz: e134f7470d09e0eb18b5d1bdea1e535aa57ed0552d333fa9de2c7c00aae6086489751941d7f6279dbf4f4ec694ca91658c03f881b1f57f57e089e4ea0f911475
data/.gitignore CHANGED
@@ -16,4 +16,5 @@ test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
18
  *.swp
19
+ TAGS
19
20
 
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ soap-object
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-2.0.0-p195
data/ChangeLog CHANGED
@@ -1,3 +1,12 @@
1
+ === Version 0.5 / 2013-6-1
2
+ * Enhancements
3
+ * Removed the body accessor
4
+ * Removed the body_xml method
5
+ * Added to_xml method to return the response as a String containing the XML
6
+ * Added to_hash method to return the respons as a Hash
7
+ * Added doc method to return response as a Nokogiri::XML::Document document
8
+ * Updated method_missing so when services methods are called the raw XML is returned
9
+
1
10
  === Version 0.4 / 2013-3-18
2
11
  * Enhancements
3
12
  * Added body accessor to SoapObject to return raw body
@@ -21,14 +21,20 @@ Feature: This describes the core functionality of the SoapObject object
21
21
  When I create an instance of the SoapObject class
22
22
  Then I should be able to make a call and receive the correct results
23
23
 
24
- Scenario: Getting the body from a response
24
+ Scenario: Getting the xml from a response
25
25
  Given I have the url for a remote wsdl
26
26
  When I create an instance of the SoapObject class
27
27
  Then I should be able to make a call and receive the correct results
28
- And the results body should contain "<NewDataSet><Table>"
28
+ And the results xml should contain "<STATE>CA"
29
29
 
30
- Scenario: Getting the body from a response
30
+ Scenario: Getting the doc from a response as a Nokogiri object
31
31
  Given I have the url for a remote wsdl
32
32
  When I create an instance of the SoapObject class
33
33
  Then I should be able to make a call and receive the correct results
34
- And the results body xml should be a Nokogiri XML object
34
+ And the results doc should be a Nokogiri XML object
35
+
36
+ Scenario: Calling another service with wsdl
37
+ Given I am calling the Define service
38
+ When I create an instance of the SoapObject class
39
+ Then I should be able to get the correct definition results
40
+
@@ -1,22 +1,48 @@
1
1
  class TestServiceWithWsdl
2
2
  include SoapObject
3
3
 
4
- wsdl 'http://www.webservicex.net/airport.asmx?WSDL'
4
+ wsdl 'http://www.webservicex.net/uszip.asmx?WSDL'
5
5
  log_level :error
6
6
 
7
- def get_airport_name_for(airport_code)
8
- response = get_airport_information_by_airport_code airport_code: airport_code
9
- doc = Nokogiri::XML(response)
10
- doc.xpath('//Table/CityOrAirportName').first.content
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
+ response.body[:get_info_by_zip_response][:get_info_by_zip_result][:new_data_set][:table]
11
27
  end
12
28
  end
13
29
 
14
30
  class TestServiceWithLocalWsdl
15
31
  include SoapObject
16
32
 
17
- wsdl "#{File.dirname(__FILE__)}/../wsdl/airport.asmx.wsdl"
33
+ wsdl "#{File.dirname(__FILE__)}/../wsdl/uszip.asmx.wsdl"
18
34
  end
19
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
20
46
 
21
47
 
22
48
  Given /^I have the url for a remote wsdl$/ do
@@ -36,17 +62,28 @@ Then /^I should have a connection$/ do
36
62
  end
37
63
 
38
64
  Then /^I should be able to determine the operations$/ do
39
- @so.operations.should include :get_airport_information_by_airport_code
65
+ @so.operations.should include :get_info_by_zip
40
66
  end
41
67
 
42
68
  Then /^I should be able to make a call and receive the correct results$/ do
43
- @so.get_airport_name_for('SFO').should == 'SAN FRANCISCO INTL'
69
+ @so.get_zip_code_info(90210)
70
+ @so.state.should == 'CA'
71
+ @so.city.should == 'Beverly Hills'
72
+ @so.area_code.should == '310'
73
+ end
74
+
75
+ Then /^the results xml should contain "(.*?)"$/ do |xml|
76
+ @so.to_xml.should include xml
77
+ end
78
+
79
+ Then /^the results doc should be a Nokogiri XML object$/ do
80
+ @so.doc.should be_instance_of Nokogiri::XML::Document
44
81
  end
45
82
 
46
- Then /^the results body should contain "(.*?)"$/ do |body|
47
- @so.body.should include body
83
+ Given /^I am calling the Define service$/ do
84
+ @cls = TestDefineService
48
85
  end
49
86
 
50
- Then /^the results body xml should be a Nokogiri XML object$/ do
51
- @so.body_xml.should be_instance_of Nokogiri::XML::Document
87
+ Then /^I should be able to get the correct definition results$/ do
88
+ @so.definition_for 'Cheese'
52
89
  end
@@ -0,0 +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>
395
+ </wsdl:definitions>
data/lib/soap-object.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'savon'
2
+ require 'cgi'
2
3
  require 'soap-object/version'
3
4
  require 'soap-object/class_methods'
4
5
  require 'soap-object/factory'
@@ -9,15 +10,21 @@ require 'soap-object/factory'
9
10
  # from the web service within the soap objects.
10
11
  #
11
12
  # @example
12
- # class AirportService
13
+ # class ZipCodeService
13
14
  # include SoapObject
14
15
  #
15
- # wsdl 'http://www.webservicex.net/airport.asmx?WSDL'
16
+ # wsdl 'http://www.webservicex.net/uszip.asmx?WSDL'
16
17
  #
17
- # def get_airport_name_for(airport_code)
18
- # response = get_airport_information_by_airport_code airport_code: airport_code
19
- # doc = Nokogiri::XML(response)
20
- # doc.xpath('//Table/CityOrAirportName').first.content
18
+ # def get_zipcode_info(zip_code)
19
+ # get_info_by_zip 'USZip' => zip_code
20
+ # end
21
+ #
22
+ # def state
23
+ # message[:state]
24
+ # end
25
+ #
26
+ # message
27
+ # response.body[:get_info_by_zip_response][:get_info_by_zip_result][:new_data_set][:table]
21
28
  # end
22
29
  # end
23
30
  #
@@ -26,7 +33,7 @@ require 'soap-object/factory'
26
33
  # view all of the options.
27
34
  #
28
35
  module SoapObject
29
- attr_reader :wsdl, :response, :body
36
+ attr_reader :wsdl, :response
30
37
 
31
38
  def initialize
32
39
  @client = Savon.client(client_properties)
@@ -53,10 +60,24 @@ module SoapObject
53
60
  end
54
61
 
55
62
  #
56
- # Return a Nokogiri::XML::Document containing the raw body.
63
+ # Return the xml response
57
64
  #
58
- def body_xml
59
- Nokogiri::XML(body)
65
+ def to_xml
66
+ response.to_xml
67
+ end
68
+
69
+ #
70
+ # Return the response as a Hash
71
+ #
72
+ def to_hash
73
+ response.hash
74
+ end
75
+
76
+ #
77
+ # Return the response as a Nokogiri document
78
+ #
79
+ def doc
80
+ response.doc
60
81
  end
61
82
 
62
83
  private
@@ -64,8 +85,7 @@ module SoapObject
64
85
  def method_missing(*args)
65
86
  method = args.shift
66
87
  @response = @client.call(method, {message: args.shift})
67
- @body = body_for(method)
68
- @body
88
+ response.to_xml
69
89
  end
70
90
 
71
91
  def client_properties
@@ -84,7 +104,4 @@ module SoapObject
84
104
  properties
85
105
  end
86
106
 
87
- def body_for(method)
88
- @response.body["#{method.to_s}_response".to_sym]["#{method.to_s}_result".to_sym]
89
- end
90
107
  end
@@ -1,5 +1,5 @@
1
1
  module Soap
2
2
  module Object
3
- VERSION = "0.4"
3
+ VERSION = "0.5"
4
4
  end
5
5
  end
data/soap-object.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
19
 
20
- gem.add_dependency 'savon', '>= 2.1.0'
20
+ gem.add_dependency 'savon', '>= 2.2.0'
21
21
 
22
22
  gem.add_development_dependency 'rspec', '>= 2.12.0'
23
23
  gem.add_development_dependency 'cucumber', '>= 1.2.0'
@@ -98,9 +98,10 @@ describe SoapObject do
98
98
  end
99
99
 
100
100
  it "should make a valid request" do
101
- client.should_receive(:call).with(:fake_call, message: {data_key: 'some_value'})
101
+ response = double('response')
102
+ response.should_receive(:to_xml)
103
+ client.should_receive(:call).with(:fake_call, message: {data_key: 'some_value'}).and_return(response)
102
104
  @so = TestServiceWithWsdl.new
103
- @so.stub(:body_for)
104
105
  @so.fake_call data_key: 'some_value'
105
106
  end
106
107
  end
metadata CHANGED
@@ -1,62 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soap-object
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.4'
5
- prerelease:
4
+ version: '0.5'
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jeffrey S. Morgan
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-19 00:00:00.000000000 Z
11
+ date: 2013-06-01 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: savon
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
- version: 2.1.0
19
+ version: 2.2.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
- version: 2.1.0
26
+ version: 2.2.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rspec
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: 2.12.0
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: 2.12.0
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: cucumber
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: 1.2.0
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: 1.2.0
62
55
  description: Wrapper around SOAP service calls to make it easy to test
@@ -68,7 +61,8 @@ extra_rdoc_files: []
68
61
  files:
69
62
  - .gitignore
70
63
  - .rspec
71
- - .rvmrc
64
+ - .ruby-gemset
65
+ - .ruby-version
72
66
  - ChangeLog
73
67
  - Gemfile
74
68
  - Guardfile
@@ -79,7 +73,7 @@ files:
79
73
  - features/basic_functionality.feature
80
74
  - features/step_definitions/basic_functionality_steps.rb
81
75
  - features/support/env.rb
82
- - features/wsdl/airport.asmx.wsdl.xml
76
+ - features/wsdl/uszip.asmx.wsdl.xml
83
77
  - lib/soap-object.rb
84
78
  - lib/soap-object/class_methods.rb
85
79
  - lib/soap-object/factory.rb
@@ -89,38 +83,31 @@ files:
89
83
  - spec/spec_helper.rb
90
84
  homepage: http://github.com/cheezy/soap-object
91
85
  licenses: []
86
+ metadata: {}
92
87
  post_install_message:
93
88
  rdoc_options: []
94
89
  require_paths:
95
90
  - lib
96
91
  required_ruby_version: !ruby/object:Gem::Requirement
97
- none: false
98
92
  requirements:
99
- - - ! '>='
93
+ - - '>='
100
94
  - !ruby/object:Gem::Version
101
95
  version: '0'
102
- segments:
103
- - 0
104
- hash: 1660955488053861236
105
96
  required_rubygems_version: !ruby/object:Gem::Requirement
106
- none: false
107
97
  requirements:
108
- - - ! '>='
98
+ - - '>='
109
99
  - !ruby/object:Gem::Version
110
100
  version: '0'
111
- segments:
112
- - 0
113
- hash: 1660955488053861236
114
101
  requirements: []
115
102
  rubyforge_project:
116
- rubygems_version: 1.8.25
103
+ rubygems_version: 2.0.3
117
104
  signing_key:
118
- specification_version: 3
105
+ specification_version: 4
119
106
  summary: Wrapper around SOAP service calls to make it easy to test
120
107
  test_files:
121
108
  - features/basic_functionality.feature
122
109
  - features/step_definitions/basic_functionality_steps.rb
123
110
  - features/support/env.rb
124
- - features/wsdl/airport.asmx.wsdl.xml
111
+ - features/wsdl/uszip.asmx.wsdl.xml
125
112
  - spec/lib/soap_object_spec.rb
126
113
  - spec/spec_helper.rb
data/.rvmrc DELETED
@@ -1 +0,0 @@
1
- rvm --create use 1.9.3-p392@soap-object
@@ -1,372 +0,0 @@
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="getAirportInformationByISOCountryCode">
6
- <s:complexType>
7
- <s:sequence>
8
- <s:element minOccurs="0" maxOccurs="1" name="CountryAbbrviation" type="s:string" />
9
- </s:sequence>
10
- </s:complexType>
11
- </s:element>
12
- <s:element name="getAirportInformationByISOCountryCodeResponse">
13
- <s:complexType>
14
- <s:sequence>
15
- <s:element minOccurs="0" maxOccurs="1" name="getAirportInformationByISOCountryCodeResult" type="s:string" />
16
- </s:sequence>
17
- </s:complexType>
18
- </s:element>
19
- <s:element name="getAirportInformationByCityOrAirportName">
20
- <s:complexType>
21
- <s:sequence>
22
- <s:element minOccurs="0" maxOccurs="1" name="cityOrAirportName" type="s:string" />
23
- </s:sequence>
24
- </s:complexType>
25
- </s:element>
26
- <s:element name="getAirportInformationByCityOrAirportNameResponse">
27
- <s:complexType>
28
- <s:sequence>
29
- <s:element minOccurs="0" maxOccurs="1" name="getAirportInformationByCityOrAirportNameResult" type="s:string" />
30
- </s:sequence>
31
- </s:complexType>
32
- </s:element>
33
- <s:element name="GetAirportInformationByCountry">
34
- <s:complexType>
35
- <s:sequence>
36
- <s:element minOccurs="0" maxOccurs="1" name="country" type="s:string" />
37
- </s:sequence>
38
- </s:complexType>
39
- </s:element>
40
- <s:element name="GetAirportInformationByCountryResponse">
41
- <s:complexType>
42
- <s:sequence>
43
- <s:element minOccurs="0" maxOccurs="1" name="GetAirportInformationByCountryResult" type="s:string" />
44
- </s:sequence>
45
- </s:complexType>
46
- </s:element>
47
- <s:element name="getAirportInformationByAirportCode">
48
- <s:complexType>
49
- <s:sequence>
50
- <s:element minOccurs="0" maxOccurs="1" name="airportCode" type="s:string" />
51
- </s:sequence>
52
- </s:complexType>
53
- </s:element>
54
- <s:element name="getAirportInformationByAirportCodeResponse">
55
- <s:complexType>
56
- <s:sequence>
57
- <s:element minOccurs="0" maxOccurs="1" name="getAirportInformationByAirportCodeResult" type="s:string" />
58
- </s:sequence>
59
- </s:complexType>
60
- </s:element>
61
- <s:element name="string" nillable="true" type="s:string" />
62
- </s:schema>
63
- </wsdl:types>
64
- <wsdl:message name="getAirportInformationByISOCountryCodeSoapIn">
65
- <wsdl:part name="parameters" element="tns:getAirportInformationByISOCountryCode" />
66
- </wsdl:message>
67
- <wsdl:message name="getAirportInformationByISOCountryCodeSoapOut">
68
- <wsdl:part name="parameters" element="tns:getAirportInformationByISOCountryCodeResponse" />
69
- </wsdl:message>
70
- <wsdl:message name="getAirportInformationByCityOrAirportNameSoapIn">
71
- <wsdl:part name="parameters" element="tns:getAirportInformationByCityOrAirportName" />
72
- </wsdl:message>
73
- <wsdl:message name="getAirportInformationByCityOrAirportNameSoapOut">
74
- <wsdl:part name="parameters" element="tns:getAirportInformationByCityOrAirportNameResponse" />
75
- </wsdl:message>
76
- <wsdl:message name="GetAirportInformationByCountrySoapIn">
77
- <wsdl:part name="parameters" element="tns:GetAirportInformationByCountry" />
78
- </wsdl:message>
79
- <wsdl:message name="GetAirportInformationByCountrySoapOut">
80
- <wsdl:part name="parameters" element="tns:GetAirportInformationByCountryResponse" />
81
- </wsdl:message>
82
- <wsdl:message name="getAirportInformationByAirportCodeSoapIn">
83
- <wsdl:part name="parameters" element="tns:getAirportInformationByAirportCode" />
84
- </wsdl:message>
85
- <wsdl:message name="getAirportInformationByAirportCodeSoapOut">
86
- <wsdl:part name="parameters" element="tns:getAirportInformationByAirportCodeResponse" />
87
- </wsdl:message>
88
- <wsdl:message name="getAirportInformationByISOCountryCodeHttpGetIn">
89
- <wsdl:part name="CountryAbbrviation" type="s:string" />
90
- </wsdl:message>
91
- <wsdl:message name="getAirportInformationByISOCountryCodeHttpGetOut">
92
- <wsdl:part name="Body" element="tns:string" />
93
- </wsdl:message>
94
- <wsdl:message name="getAirportInformationByCityOrAirportNameHttpGetIn">
95
- <wsdl:part name="cityOrAirportName" type="s:string" />
96
- </wsdl:message>
97
- <wsdl:message name="getAirportInformationByCityOrAirportNameHttpGetOut">
98
- <wsdl:part name="Body" element="tns:string" />
99
- </wsdl:message>
100
- <wsdl:message name="GetAirportInformationByCountryHttpGetIn">
101
- <wsdl:part name="country" type="s:string" />
102
- </wsdl:message>
103
- <wsdl:message name="GetAirportInformationByCountryHttpGetOut">
104
- <wsdl:part name="Body" element="tns:string" />
105
- </wsdl:message>
106
- <wsdl:message name="getAirportInformationByAirportCodeHttpGetIn">
107
- <wsdl:part name="airportCode" type="s:string" />
108
- </wsdl:message>
109
- <wsdl:message name="getAirportInformationByAirportCodeHttpGetOut">
110
- <wsdl:part name="Body" element="tns:string" />
111
- </wsdl:message>
112
- <wsdl:message name="getAirportInformationByISOCountryCodeHttpPostIn">
113
- <wsdl:part name="CountryAbbrviation" type="s:string" />
114
- </wsdl:message>
115
- <wsdl:message name="getAirportInformationByISOCountryCodeHttpPostOut">
116
- <wsdl:part name="Body" element="tns:string" />
117
- </wsdl:message>
118
- <wsdl:message name="getAirportInformationByCityOrAirportNameHttpPostIn">
119
- <wsdl:part name="cityOrAirportName" type="s:string" />
120
- </wsdl:message>
121
- <wsdl:message name="getAirportInformationByCityOrAirportNameHttpPostOut">
122
- <wsdl:part name="Body" element="tns:string" />
123
- </wsdl:message>
124
- <wsdl:message name="GetAirportInformationByCountryHttpPostIn">
125
- <wsdl:part name="country" type="s:string" />
126
- </wsdl:message>
127
- <wsdl:message name="GetAirportInformationByCountryHttpPostOut">
128
- <wsdl:part name="Body" element="tns:string" />
129
- </wsdl:message>
130
- <wsdl:message name="getAirportInformationByAirportCodeHttpPostIn">
131
- <wsdl:part name="airportCode" type="s:string" />
132
- </wsdl:message>
133
- <wsdl:message name="getAirportInformationByAirportCodeHttpPostOut">
134
- <wsdl:part name="Body" element="tns:string" />
135
- </wsdl:message>
136
- <wsdl:portType name="airportSoap">
137
- <wsdl:operation name="getAirportInformationByISOCountryCode">
138
- <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get Airport Code, CityOrAirport Name, Country, Country Abbrv, CountryCode,GMT Offset Runway Length in Feet, Runway Elevation in Feet,Latitude in Degree,Latitude in Minute Latitude in Second,Latitude in N/S, Longitude in Degree, Longitude in Minute, Longitude in Seconds and longitude E/W by ISO country code </wsdl:documentation>
139
- <wsdl:input message="tns:getAirportInformationByISOCountryCodeSoapIn" />
140
- <wsdl:output message="tns:getAirportInformationByISOCountryCodeSoapOut" />
141
- </wsdl:operation>
142
- <wsdl:operation name="getAirportInformationByCityOrAirportName">
143
- <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get Airport Code, CityOrAirport Name, Country, Country Abbrv, CountryCode,GMT Offset Runway Length in Feet, Runway Elevation in Feet,Latitude in Degree,Latitude in Minute Latitude in Second,Latitude in N/S, Longitude in Degree, Longitude in Minute, Longitude in Seconds and longitude E/W by city or airport name </wsdl:documentation>
144
- <wsdl:input message="tns:getAirportInformationByCityOrAirportNameSoapIn" />
145
- <wsdl:output message="tns:getAirportInformationByCityOrAirportNameSoapOut" />
146
- </wsdl:operation>
147
- <wsdl:operation name="GetAirportInformationByCountry">
148
- <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get Airport Code, CityOrAirport Name, Country, Country Abbrv, CountryCode,GMT Offset Runway Length in Feet, Runway Elevation in Feet,Latitude in Degree,Latitude in Minute Latitude in Second,Latitude in N/S, Longitude in Degree, Longitude in Minute, Longitude in Seconds and longitude E/W by country name </wsdl:documentation>
149
- <wsdl:input message="tns:GetAirportInformationByCountrySoapIn" />
150
- <wsdl:output message="tns:GetAirportInformationByCountrySoapOut" />
151
- </wsdl:operation>
152
- <wsdl:operation name="getAirportInformationByAirportCode">
153
- <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get Airport Code, CityOrAirport Name, Country, Country Abbrv, CountryCode,GMT Offset Runway Length in Feet, Runway Elevation in Feet,Latitude in Degree,Latitude in Minute Latitude in Second,Latitude in N/S, Longitude in Degree, Longitude in Minute, Longitude in Seconds and longitude E/W by airport code </wsdl:documentation>
154
- <wsdl:input message="tns:getAirportInformationByAirportCodeSoapIn" />
155
- <wsdl:output message="tns:getAirportInformationByAirportCodeSoapOut" />
156
- </wsdl:operation>
157
- </wsdl:portType>
158
- <wsdl:portType name="airportHttpGet">
159
- <wsdl:operation name="getAirportInformationByISOCountryCode">
160
- <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get Airport Code, CityOrAirport Name, Country, Country Abbrv, CountryCode,GMT Offset Runway Length in Feet, Runway Elevation in Feet,Latitude in Degree,Latitude in Minute Latitude in Second,Latitude in N/S, Longitude in Degree, Longitude in Minute, Longitude in Seconds and longitude E/W by ISO country code </wsdl:documentation>
161
- <wsdl:input message="tns:getAirportInformationByISOCountryCodeHttpGetIn" />
162
- <wsdl:output message="tns:getAirportInformationByISOCountryCodeHttpGetOut" />
163
- </wsdl:operation>
164
- <wsdl:operation name="getAirportInformationByCityOrAirportName">
165
- <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get Airport Code, CityOrAirport Name, Country, Country Abbrv, CountryCode,GMT Offset Runway Length in Feet, Runway Elevation in Feet,Latitude in Degree,Latitude in Minute Latitude in Second,Latitude in N/S, Longitude in Degree, Longitude in Minute, Longitude in Seconds and longitude E/W by city or airport name </wsdl:documentation>
166
- <wsdl:input message="tns:getAirportInformationByCityOrAirportNameHttpGetIn" />
167
- <wsdl:output message="tns:getAirportInformationByCityOrAirportNameHttpGetOut" />
168
- </wsdl:operation>
169
- <wsdl:operation name="GetAirportInformationByCountry">
170
- <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get Airport Code, CityOrAirport Name, Country, Country Abbrv, CountryCode,GMT Offset Runway Length in Feet, Runway Elevation in Feet,Latitude in Degree,Latitude in Minute Latitude in Second,Latitude in N/S, Longitude in Degree, Longitude in Minute, Longitude in Seconds and longitude E/W by country name </wsdl:documentation>
171
- <wsdl:input message="tns:GetAirportInformationByCountryHttpGetIn" />
172
- <wsdl:output message="tns:GetAirportInformationByCountryHttpGetOut" />
173
- </wsdl:operation>
174
- <wsdl:operation name="getAirportInformationByAirportCode">
175
- <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get Airport Code, CityOrAirport Name, Country, Country Abbrv, CountryCode,GMT Offset Runway Length in Feet, Runway Elevation in Feet,Latitude in Degree,Latitude in Minute Latitude in Second,Latitude in N/S, Longitude in Degree, Longitude in Minute, Longitude in Seconds and longitude E/W by airport code </wsdl:documentation>
176
- <wsdl:input message="tns:getAirportInformationByAirportCodeHttpGetIn" />
177
- <wsdl:output message="tns:getAirportInformationByAirportCodeHttpGetOut" />
178
- </wsdl:operation>
179
- </wsdl:portType>
180
- <wsdl:portType name="airportHttpPost">
181
- <wsdl:operation name="getAirportInformationByISOCountryCode">
182
- <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get Airport Code, CityOrAirport Name, Country, Country Abbrv, CountryCode,GMT Offset Runway Length in Feet, Runway Elevation in Feet,Latitude in Degree,Latitude in Minute Latitude in Second,Latitude in N/S, Longitude in Degree, Longitude in Minute, Longitude in Seconds and longitude E/W by ISO country code </wsdl:documentation>
183
- <wsdl:input message="tns:getAirportInformationByISOCountryCodeHttpPostIn" />
184
- <wsdl:output message="tns:getAirportInformationByISOCountryCodeHttpPostOut" />
185
- </wsdl:operation>
186
- <wsdl:operation name="getAirportInformationByCityOrAirportName">
187
- <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get Airport Code, CityOrAirport Name, Country, Country Abbrv, CountryCode,GMT Offset Runway Length in Feet, Runway Elevation in Feet,Latitude in Degree,Latitude in Minute Latitude in Second,Latitude in N/S, Longitude in Degree, Longitude in Minute, Longitude in Seconds and longitude E/W by city or airport name </wsdl:documentation>
188
- <wsdl:input message="tns:getAirportInformationByCityOrAirportNameHttpPostIn" />
189
- <wsdl:output message="tns:getAirportInformationByCityOrAirportNameHttpPostOut" />
190
- </wsdl:operation>
191
- <wsdl:operation name="GetAirportInformationByCountry">
192
- <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get Airport Code, CityOrAirport Name, Country, Country Abbrv, CountryCode,GMT Offset Runway Length in Feet, Runway Elevation in Feet,Latitude in Degree,Latitude in Minute Latitude in Second,Latitude in N/S, Longitude in Degree, Longitude in Minute, Longitude in Seconds and longitude E/W by country name </wsdl:documentation>
193
- <wsdl:input message="tns:GetAirportInformationByCountryHttpPostIn" />
194
- <wsdl:output message="tns:GetAirportInformationByCountryHttpPostOut" />
195
- </wsdl:operation>
196
- <wsdl:operation name="getAirportInformationByAirportCode">
197
- <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get Airport Code, CityOrAirport Name, Country, Country Abbrv, CountryCode,GMT Offset Runway Length in Feet, Runway Elevation in Feet,Latitude in Degree,Latitude in Minute Latitude in Second,Latitude in N/S, Longitude in Degree, Longitude in Minute, Longitude in Seconds and longitude E/W by airport code </wsdl:documentation>
198
- <wsdl:input message="tns:getAirportInformationByAirportCodeHttpPostIn" />
199
- <wsdl:output message="tns:getAirportInformationByAirportCodeHttpPostOut" />
200
- </wsdl:operation>
201
- </wsdl:portType>
202
- <wsdl:binding name="airportSoap" type="tns:airportSoap">
203
- <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
204
- <wsdl:operation name="getAirportInformationByISOCountryCode">
205
- <soap:operation soapAction="http://www.webserviceX.NET/getAirportInformationByISOCountryCode" style="document" />
206
- <wsdl:input>
207
- <soap:body use="literal" />
208
- </wsdl:input>
209
- <wsdl:output>
210
- <soap:body use="literal" />
211
- </wsdl:output>
212
- </wsdl:operation>
213
- <wsdl:operation name="getAirportInformationByCityOrAirportName">
214
- <soap:operation soapAction="http://www.webserviceX.NET/getAirportInformationByCityOrAirportName" style="document" />
215
- <wsdl:input>
216
- <soap:body use="literal" />
217
- </wsdl:input>
218
- <wsdl:output>
219
- <soap:body use="literal" />
220
- </wsdl:output>
221
- </wsdl:operation>
222
- <wsdl:operation name="GetAirportInformationByCountry">
223
- <soap:operation soapAction="http://www.webserviceX.NET/GetAirportInformationByCountry" style="document" />
224
- <wsdl:input>
225
- <soap:body use="literal" />
226
- </wsdl:input>
227
- <wsdl:output>
228
- <soap:body use="literal" />
229
- </wsdl:output>
230
- </wsdl:operation>
231
- <wsdl:operation name="getAirportInformationByAirportCode">
232
- <soap:operation soapAction="http://www.webserviceX.NET/getAirportInformationByAirportCode" style="document" />
233
- <wsdl:input>
234
- <soap:body use="literal" />
235
- </wsdl:input>
236
- <wsdl:output>
237
- <soap:body use="literal" />
238
- </wsdl:output>
239
- </wsdl:operation>
240
- </wsdl:binding>
241
- <wsdl:binding name="airportSoap12" type="tns:airportSoap">
242
- <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
243
- <wsdl:operation name="getAirportInformationByISOCountryCode">
244
- <soap12:operation soapAction="http://www.webserviceX.NET/getAirportInformationByISOCountryCode" style="document" />
245
- <wsdl:input>
246
- <soap12:body use="literal" />
247
- </wsdl:input>
248
- <wsdl:output>
249
- <soap12:body use="literal" />
250
- </wsdl:output>
251
- </wsdl:operation>
252
- <wsdl:operation name="getAirportInformationByCityOrAirportName">
253
- <soap12:operation soapAction="http://www.webserviceX.NET/getAirportInformationByCityOrAirportName" style="document" />
254
- <wsdl:input>
255
- <soap12:body use="literal" />
256
- </wsdl:input>
257
- <wsdl:output>
258
- <soap12:body use="literal" />
259
- </wsdl:output>
260
- </wsdl:operation>
261
- <wsdl:operation name="GetAirportInformationByCountry">
262
- <soap12:operation soapAction="http://www.webserviceX.NET/GetAirportInformationByCountry" style="document" />
263
- <wsdl:input>
264
- <soap12:body use="literal" />
265
- </wsdl:input>
266
- <wsdl:output>
267
- <soap12:body use="literal" />
268
- </wsdl:output>
269
- </wsdl:operation>
270
- <wsdl:operation name="getAirportInformationByAirportCode">
271
- <soap12:operation soapAction="http://www.webserviceX.NET/getAirportInformationByAirportCode" style="document" />
272
- <wsdl:input>
273
- <soap12:body use="literal" />
274
- </wsdl:input>
275
- <wsdl:output>
276
- <soap12:body use="literal" />
277
- </wsdl:output>
278
- </wsdl:operation>
279
- </wsdl:binding>
280
- <wsdl:binding name="airportHttpGet" type="tns:airportHttpGet">
281
- <http:binding verb="GET" />
282
- <wsdl:operation name="getAirportInformationByISOCountryCode">
283
- <http:operation location="/getAirportInformationByISOCountryCode" />
284
- <wsdl:input>
285
- <http:urlEncoded />
286
- </wsdl:input>
287
- <wsdl:output>
288
- <mime:mimeXml part="Body" />
289
- </wsdl:output>
290
- </wsdl:operation>
291
- <wsdl:operation name="getAirportInformationByCityOrAirportName">
292
- <http:operation location="/getAirportInformationByCityOrAirportName" />
293
- <wsdl:input>
294
- <http:urlEncoded />
295
- </wsdl:input>
296
- <wsdl:output>
297
- <mime:mimeXml part="Body" />
298
- </wsdl:output>
299
- </wsdl:operation>
300
- <wsdl:operation name="GetAirportInformationByCountry">
301
- <http:operation location="/GetAirportInformationByCountry" />
302
- <wsdl:input>
303
- <http:urlEncoded />
304
- </wsdl:input>
305
- <wsdl:output>
306
- <mime:mimeXml part="Body" />
307
- </wsdl:output>
308
- </wsdl:operation>
309
- <wsdl:operation name="getAirportInformationByAirportCode">
310
- <http:operation location="/getAirportInformationByAirportCode" />
311
- <wsdl:input>
312
- <http:urlEncoded />
313
- </wsdl:input>
314
- <wsdl:output>
315
- <mime:mimeXml part="Body" />
316
- </wsdl:output>
317
- </wsdl:operation>
318
- </wsdl:binding>
319
- <wsdl:binding name="airportHttpPost" type="tns:airportHttpPost">
320
- <http:binding verb="POST" />
321
- <wsdl:operation name="getAirportInformationByISOCountryCode">
322
- <http:operation location="/getAirportInformationByISOCountryCode" />
323
- <wsdl:input>
324
- <mime:content type="application/x-www-form-urlencoded" />
325
- </wsdl:input>
326
- <wsdl:output>
327
- <mime:mimeXml part="Body" />
328
- </wsdl:output>
329
- </wsdl:operation>
330
- <wsdl:operation name="getAirportInformationByCityOrAirportName">
331
- <http:operation location="/getAirportInformationByCityOrAirportName" />
332
- <wsdl:input>
333
- <mime:content type="application/x-www-form-urlencoded" />
334
- </wsdl:input>
335
- <wsdl:output>
336
- <mime:mimeXml part="Body" />
337
- </wsdl:output>
338
- </wsdl:operation>
339
- <wsdl:operation name="GetAirportInformationByCountry">
340
- <http:operation location="/GetAirportInformationByCountry" />
341
- <wsdl:input>
342
- <mime:content type="application/x-www-form-urlencoded" />
343
- </wsdl:input>
344
- <wsdl:output>
345
- <mime:mimeXml part="Body" />
346
- </wsdl:output>
347
- </wsdl:operation>
348
- <wsdl:operation name="getAirportInformationByAirportCode">
349
- <http:operation location="/getAirportInformationByAirportCode" />
350
- <wsdl:input>
351
- <mime:content type="application/x-www-form-urlencoded" />
352
- </wsdl:input>
353
- <wsdl:output>
354
- <mime:mimeXml part="Body" />
355
- </wsdl:output>
356
- </wsdl:operation>
357
- </wsdl:binding>
358
- <wsdl:service name="airport">
359
- <wsdl:port name="airportSoap" binding="tns:airportSoap">
360
- <soap:address location="http://www.webservicex.net/airport.asmx" />
361
- </wsdl:port>
362
- <wsdl:port name="airportSoap12" binding="tns:airportSoap12">
363
- <soap12:address location="http://www.webservicex.net/airport.asmx" />
364
- </wsdl:port>
365
- <wsdl:port name="airportHttpGet" binding="tns:airportHttpGet">
366
- <http:address location="http://www.webservicex.net/airport.asmx" />
367
- </wsdl:port>
368
- <wsdl:port name="airportHttpPost" binding="tns:airportHttpPost">
369
- <http:address location="http://www.webservicex.net/airport.asmx" />
370
- </wsdl:port>
371
- </wsdl:service>
372
- </wsdl:definitions>