adwords4r 0.6 → 0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,97 @@
1
+ module AdWords
2
+ require 'adwords4r/v6/CriterionService'
3
+
4
+ require 'soap/rpc/driver'
5
+
6
+ class CriterionService < ::SOAP::RPC::Driver
7
+ DefaultEndpointUrl = "https://adwords.google.com/api/adwords/v6/CriterionService"
8
+ MappingRegistry = ::SOAP::Mapping::Registry.new
9
+
10
+ Methods = [
11
+ [ "",
12
+ "getAllCriteria",
13
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getAllCriteria"], true],
14
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getAllCriteriaResponse"], true] ],
15
+ { :request_style => :document, :request_use => :literal,
16
+ :response_style => :document, :response_use => :literal }
17
+ ],
18
+ [ "",
19
+ "getCriteria",
20
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getCriteria"], true],
21
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getCriteriaResponse"], true] ],
22
+ { :request_style => :document, :request_use => :literal,
23
+ :response_style => :document, :response_use => :literal }
24
+ ],
25
+ [ "",
26
+ "updateCriteria",
27
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "updateCriteria"], true],
28
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "updateCriteriaResponse"], true] ],
29
+ { :request_style => :document, :request_use => :literal,
30
+ :response_style => :document, :response_use => :literal }
31
+ ],
32
+ [ "",
33
+ "addCriteria",
34
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "addCriteria"], true],
35
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "addCriteriaResponse"], true] ],
36
+ { :request_style => :document, :request_use => :literal,
37
+ :response_style => :document, :response_use => :literal }
38
+ ],
39
+ [ "",
40
+ "removeCriteria",
41
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "removeCriteria"], true],
42
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "removeCriteriaResponse"], true] ],
43
+ { :request_style => :document, :request_use => :literal,
44
+ :response_style => :document, :response_use => :literal }
45
+ ],
46
+ [ "",
47
+ "getCriterionStats",
48
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getCriterionStats"], true],
49
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getCriterionStatsResponse"], true] ],
50
+ { :request_style => :document, :request_use => :literal,
51
+ :response_style => :document, :response_use => :literal }
52
+ ],
53
+ [ "",
54
+ "getCampaignNegativeCriteria",
55
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getCampaignNegativeCriteria"], true],
56
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getCampaignNegativeCriteriaResponse"], true] ],
57
+ { :request_style => :document, :request_use => :literal,
58
+ :response_style => :document, :response_use => :literal }
59
+ ],
60
+ [ "",
61
+ "setCampaignNegativeCriteria",
62
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "setCampaignNegativeCriteria"], true],
63
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "setCampaignNegativeCriteriaResponse"], true] ],
64
+ { :request_style => :document, :request_use => :literal,
65
+ :response_style => :document, :response_use => :literal }
66
+ ]
67
+ ]
68
+
69
+ def initialize(endpoint_url = nil)
70
+ endpoint_url ||= DefaultEndpointUrl
71
+ super(endpoint_url, nil)
72
+ self.mapping_registry = MappingRegistry
73
+ init_methods
74
+ end
75
+
76
+ private
77
+
78
+ def init_methods
79
+ Methods.each do |definitions|
80
+ opt = definitions.last
81
+ if opt[:request_style] == :document
82
+ add_document_operation(*definitions)
83
+ else
84
+ add_rpc_operation(*definitions)
85
+ qname = definitions[0]
86
+ name = definitions[2]
87
+ if qname.name != name and qname.name.capitalize == name.capitalize
88
+ ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
89
+ __send__(name, *arg)
90
+ end
91
+ end
92
+ end
93
+ end
94
+ end
95
+ end
96
+
97
+ end
@@ -0,0 +1,343 @@
1
+ module AdWords
2
+ require 'xsd/qname'
3
+
4
+ # {https://adwords.google.com/api/adwords/v6}getOperationCount
5
+ class GetOperationCount
6
+ @@schema_type = "getOperationCount"
7
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
8
+ @@schema_qualified = "true"
9
+ @@schema_element = [
10
+ ["startDate", "SOAP::SOAPDate"],
11
+ ["endDate", "SOAP::SOAPDate"]
12
+ ]
13
+
14
+ attr_accessor :startDate
15
+ attr_accessor :endDate
16
+
17
+ def initialize(startDate = nil, endDate = nil)
18
+ @startDate = startDate
19
+ @endDate = endDate
20
+ end
21
+ end
22
+
23
+ # {https://adwords.google.com/api/adwords/v6}getOperationCountResponse
24
+ class GetOperationCountResponse
25
+ @@schema_type = "getOperationCountResponse"
26
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
27
+ @@schema_qualified = "true"
28
+ @@schema_element = [
29
+ ["getOperationCountReturn", "SOAP::SOAPLong"]
30
+ ]
31
+
32
+ attr_accessor :getOperationCountReturn
33
+
34
+ def initialize(getOperationCountReturn = nil)
35
+ @getOperationCountReturn = getOperationCountReturn
36
+ end
37
+ end
38
+
39
+ # {https://adwords.google.com/api/adwords/v6}getOperationsQuotaThisMonth
40
+ class GetOperationsQuotaThisMonth
41
+ @@schema_type = "getOperationsQuotaThisMonth"
42
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
43
+ @@schema_qualified = "true"
44
+ @@schema_element = []
45
+
46
+ def initialize
47
+ end
48
+ end
49
+
50
+ # {https://adwords.google.com/api/adwords/v6}getOperationsQuotaThisMonthResponse
51
+ class GetOperationsQuotaThisMonthResponse
52
+ @@schema_type = "getOperationsQuotaThisMonthResponse"
53
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
54
+ @@schema_qualified = "true"
55
+ @@schema_element = [
56
+ ["getOperationsQuotaThisMonthReturn", "SOAP::SOAPLong"]
57
+ ]
58
+
59
+ attr_accessor :getOperationsQuotaThisMonthReturn
60
+
61
+ def initialize(getOperationsQuotaThisMonthReturn = nil)
62
+ @getOperationsQuotaThisMonthReturn = getOperationsQuotaThisMonthReturn
63
+ end
64
+ end
65
+
66
+ # {https://adwords.google.com/api/adwords/v6}getUsageQuotaThisMonth
67
+ class GetUsageQuotaThisMonth
68
+ @@schema_type = "getUsageQuotaThisMonth"
69
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
70
+ @@schema_qualified = "true"
71
+ @@schema_element = []
72
+
73
+ def initialize
74
+ end
75
+ end
76
+
77
+ # {https://adwords.google.com/api/adwords/v6}getUsageQuotaThisMonthResponse
78
+ class GetUsageQuotaThisMonthResponse
79
+ @@schema_type = "getUsageQuotaThisMonthResponse"
80
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
81
+ @@schema_qualified = "true"
82
+ @@schema_element = [
83
+ ["getUsageQuotaThisMonthReturn", "SOAP::SOAPLong"]
84
+ ]
85
+
86
+ attr_accessor :getUsageQuotaThisMonthReturn
87
+
88
+ def initialize(getUsageQuotaThisMonthReturn = nil)
89
+ @getUsageQuotaThisMonthReturn = getUsageQuotaThisMonthReturn
90
+ end
91
+ end
92
+
93
+ # {https://adwords.google.com/api/adwords/v6}getFreeUsageQuotaThisMonth
94
+ class GetFreeUsageQuotaThisMonth
95
+ @@schema_type = "getFreeUsageQuotaThisMonth"
96
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
97
+ @@schema_qualified = "true"
98
+ @@schema_element = []
99
+
100
+ def initialize
101
+ end
102
+ end
103
+
104
+ # {https://adwords.google.com/api/adwords/v6}getFreeUsageQuotaThisMonthResponse
105
+ class GetFreeUsageQuotaThisMonthResponse
106
+ @@schema_type = "getFreeUsageQuotaThisMonthResponse"
107
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
108
+ @@schema_qualified = "true"
109
+ @@schema_element = [
110
+ ["getFreeUsageQuotaThisMonthReturn", "SOAP::SOAPLong"]
111
+ ]
112
+
113
+ attr_accessor :getFreeUsageQuotaThisMonthReturn
114
+
115
+ def initialize(getFreeUsageQuotaThisMonthReturn = nil)
116
+ @getFreeUsageQuotaThisMonthReturn = getFreeUsageQuotaThisMonthReturn
117
+ end
118
+ end
119
+
120
+ # {https://adwords.google.com/api/adwords/v6}getMethodCost
121
+ class GetMethodCost
122
+ @@schema_type = "getMethodCost"
123
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
124
+ @@schema_qualified = "true"
125
+ @@schema_element = [
126
+ ["service", "SOAP::SOAPString"],
127
+ ["method", "SOAP::SOAPString"],
128
+ ["date", "SOAP::SOAPDate"]
129
+ ]
130
+
131
+ attr_accessor :service
132
+ attr_accessor :method
133
+ attr_accessor :date
134
+
135
+ def initialize(service = nil, method = nil, date = nil)
136
+ @service = service
137
+ @method = method
138
+ @date = date
139
+ end
140
+ end
141
+
142
+ # {https://adwords.google.com/api/adwords/v6}getMethodCostResponse
143
+ class GetMethodCostResponse
144
+ @@schema_type = "getMethodCostResponse"
145
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
146
+ @@schema_qualified = "true"
147
+ @@schema_element = [
148
+ ["getMethodCostReturn", "SOAP::SOAPInt"]
149
+ ]
150
+
151
+ attr_accessor :getMethodCostReturn
152
+
153
+ def initialize(getMethodCostReturn = nil)
154
+ @getMethodCostReturn = getMethodCostReturn
155
+ end
156
+ end
157
+
158
+ # {https://adwords.google.com/api/adwords/v6}getUnitCount
159
+ class GetUnitCount
160
+ @@schema_type = "getUnitCount"
161
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
162
+ @@schema_qualified = "true"
163
+ @@schema_element = [
164
+ ["startDate", "SOAP::SOAPDate"],
165
+ ["endDate", "SOAP::SOAPDate"]
166
+ ]
167
+
168
+ attr_accessor :startDate
169
+ attr_accessor :endDate
170
+
171
+ def initialize(startDate = nil, endDate = nil)
172
+ @startDate = startDate
173
+ @endDate = endDate
174
+ end
175
+ end
176
+
177
+ # {https://adwords.google.com/api/adwords/v6}getUnitCountResponse
178
+ class GetUnitCountResponse
179
+ @@schema_type = "getUnitCountResponse"
180
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
181
+ @@schema_qualified = "true"
182
+ @@schema_element = [
183
+ ["getUnitCountReturn", "SOAP::SOAPLong"]
184
+ ]
185
+
186
+ attr_accessor :getUnitCountReturn
187
+
188
+ def initialize(getUnitCountReturn = nil)
189
+ @getUnitCountReturn = getUnitCountReturn
190
+ end
191
+ end
192
+
193
+ # {https://adwords.google.com/api/adwords/v6}getUnitCountForMethod
194
+ class GetUnitCountForMethod
195
+ @@schema_type = "getUnitCountForMethod"
196
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
197
+ @@schema_qualified = "true"
198
+ @@schema_element = [
199
+ ["service", "SOAP::SOAPString"],
200
+ ["method", "SOAP::SOAPString"],
201
+ ["startDate", "SOAP::SOAPDate"],
202
+ ["endDate", "SOAP::SOAPDate"]
203
+ ]
204
+
205
+ attr_accessor :service
206
+ attr_accessor :method
207
+ attr_accessor :startDate
208
+ attr_accessor :endDate
209
+
210
+ def initialize(service = nil, method = nil, startDate = nil, endDate = nil)
211
+ @service = service
212
+ @method = method
213
+ @startDate = startDate
214
+ @endDate = endDate
215
+ end
216
+ end
217
+
218
+ # {https://adwords.google.com/api/adwords/v6}getUnitCountForMethodResponse
219
+ class GetUnitCountForMethodResponse
220
+ @@schema_type = "getUnitCountForMethodResponse"
221
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
222
+ @@schema_qualified = "true"
223
+ @@schema_element = [
224
+ ["getUnitCountForMethodReturn", "SOAP::SOAPLong"]
225
+ ]
226
+
227
+ attr_accessor :getUnitCountForMethodReturn
228
+
229
+ def initialize(getUnitCountForMethodReturn = nil)
230
+ @getUnitCountForMethodReturn = getUnitCountForMethodReturn
231
+ end
232
+ end
233
+
234
+ # {https://adwords.google.com/api/adwords/v6}getUnitCountForClients
235
+ class GetUnitCountForClients
236
+ @@schema_type = "getUnitCountForClients"
237
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
238
+ @@schema_qualified = "true"
239
+ @@schema_element = [
240
+ ["clientEmails", "SOAP::SOAPString[]"],
241
+ ["startDate", "SOAP::SOAPDate"],
242
+ ["endDate", "SOAP::SOAPDate"]
243
+ ]
244
+
245
+ attr_accessor :clientEmails
246
+ attr_accessor :startDate
247
+ attr_accessor :endDate
248
+
249
+ def initialize(clientEmails = [], startDate = nil, endDate = nil)
250
+ @clientEmails = clientEmails
251
+ @startDate = startDate
252
+ @endDate = endDate
253
+ end
254
+ end
255
+
256
+ # {https://adwords.google.com/api/adwords/v6}getUnitCountForClientsResponse
257
+ class GetUnitCountForClientsResponse < ::Array
258
+ @@schema_element = [
259
+ ["getUnitCountForClientsReturn", ["ClientUsageRecord[]", XSD::QName.new("https://adwords.google.com/api/adwords/v6", "getUnitCountForClientsReturn")]]
260
+ ]
261
+ end
262
+
263
+ # {https://adwords.google.com/api/adwords/v6}ApiException
264
+ class ApiException
265
+ @@schema_type = "ApiException"
266
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
267
+ @@schema_element = [
268
+ ["code", "SOAP::SOAPInt"],
269
+ ["internal", "SOAP::SOAPBoolean"],
270
+ ["message", "SOAP::SOAPString"],
271
+ ["trigger", "SOAP::SOAPString"],
272
+ ["errors", "ApiError[]"]
273
+ ]
274
+
275
+ attr_accessor :code
276
+ attr_accessor :internal
277
+ attr_accessor :message
278
+ attr_accessor :trigger
279
+ attr_accessor :errors
280
+
281
+ def initialize(code = nil, internal = nil, message = nil, trigger = nil, errors = [])
282
+ @code = code
283
+ @internal = internal
284
+ @message = message
285
+ @trigger = trigger
286
+ @errors = errors
287
+ end
288
+ end
289
+
290
+ # {https://adwords.google.com/api/adwords/v6}ApiError
291
+ class ApiError
292
+ @@schema_type = "ApiError"
293
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
294
+ @@schema_element = [
295
+ ["index", "SOAP::SOAPInt"],
296
+ ["field", "SOAP::SOAPString"],
297
+ ["textIndex", "SOAP::SOAPInt"],
298
+ ["textLength", "SOAP::SOAPInt"],
299
+ ["trigger", "SOAP::SOAPString"],
300
+ ["code", "SOAP::SOAPInt"],
301
+ ["isExemptable", "SOAP::SOAPBoolean"],
302
+ ["detail", "SOAP::SOAPString"]
303
+ ]
304
+
305
+ attr_accessor :index
306
+ attr_accessor :field
307
+ attr_accessor :textIndex
308
+ attr_accessor :textLength
309
+ attr_accessor :trigger
310
+ attr_accessor :code
311
+ attr_accessor :isExemptable
312
+ attr_accessor :detail
313
+
314
+ def initialize(index = nil, field = nil, textIndex = nil, textLength = nil, trigger = nil, code = nil, isExemptable = nil, detail = nil)
315
+ @index = index
316
+ @field = field
317
+ @textIndex = textIndex
318
+ @textLength = textLength
319
+ @trigger = trigger
320
+ @code = code
321
+ @isExemptable = isExemptable
322
+ @detail = detail
323
+ end
324
+ end
325
+
326
+ # {https://adwords.google.com/api/adwords/v6}ClientUsageRecord
327
+ class ClientUsageRecord
328
+ @@schema_type = "ClientUsageRecord"
329
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
330
+ @@schema_element = [
331
+ ["clientEmail", "SOAP::SOAPString"],
332
+ ["quotaUnits", "SOAP::SOAPLong"]
333
+ ]
334
+
335
+ attr_accessor :clientEmail
336
+ attr_accessor :quotaUnits
337
+
338
+ def initialize(clientEmail = nil, quotaUnits = nil)
339
+ @clientEmail = clientEmail
340
+ @quotaUnits = quotaUnits
341
+ end
342
+ end
343
+ end
@@ -0,0 +1,97 @@
1
+ module AdWords
2
+ require 'adwords4r/v6/InfoService'
3
+
4
+ require 'soap/rpc/driver'
5
+
6
+ class InfoServiceInterface < ::SOAP::RPC::Driver
7
+ DefaultEndpointUrl = "https://adwords.google.com/api/adwords/v6/InfoService"
8
+ MappingRegistry = ::SOAP::Mapping::Registry.new
9
+
10
+ Methods = [
11
+ [ "",
12
+ "getOperationCount",
13
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getOperationCount"], true],
14
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getOperationCountResponse"], true] ],
15
+ { :request_style => :document, :request_use => :literal,
16
+ :response_style => :document, :response_use => :literal }
17
+ ],
18
+ [ "",
19
+ "getOperationsQuotaThisMonth",
20
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getOperationsQuotaThisMonth"], true],
21
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getOperationsQuotaThisMonthResponse"], true] ],
22
+ { :request_style => :document, :request_use => :literal,
23
+ :response_style => :document, :response_use => :literal }
24
+ ],
25
+ [ "",
26
+ "getUsageQuotaThisMonth",
27
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getUsageQuotaThisMonth"], true],
28
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getUsageQuotaThisMonthResponse"], true] ],
29
+ { :request_style => :document, :request_use => :literal,
30
+ :response_style => :document, :response_use => :literal }
31
+ ],
32
+ [ "",
33
+ "getFreeUsageQuotaThisMonth",
34
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getFreeUsageQuotaThisMonth"], true],
35
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getFreeUsageQuotaThisMonthResponse"], true] ],
36
+ { :request_style => :document, :request_use => :literal,
37
+ :response_style => :document, :response_use => :literal }
38
+ ],
39
+ [ "",
40
+ "getMethodCost",
41
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getMethodCost"], true],
42
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getMethodCostResponse"], true] ],
43
+ { :request_style => :document, :request_use => :literal,
44
+ :response_style => :document, :response_use => :literal }
45
+ ],
46
+ [ "",
47
+ "getUnitCount",
48
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getUnitCount"], true],
49
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getUnitCountResponse"], true] ],
50
+ { :request_style => :document, :request_use => :literal,
51
+ :response_style => :document, :response_use => :literal }
52
+ ],
53
+ [ "",
54
+ "getUnitCountForMethod",
55
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getUnitCountForMethod"], true],
56
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getUnitCountForMethodResponse"], true] ],
57
+ { :request_style => :document, :request_use => :literal,
58
+ :response_style => :document, :response_use => :literal }
59
+ ],
60
+ [ "",
61
+ "getUnitCountForClients",
62
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getUnitCountForClients"], true],
63
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getUnitCountForClientsResponse"], true] ],
64
+ { :request_style => :document, :request_use => :literal,
65
+ :response_style => :document, :response_use => :literal }
66
+ ]
67
+ ]
68
+
69
+ def initialize(endpoint_url = nil)
70
+ endpoint_url ||= DefaultEndpointUrl
71
+ super(endpoint_url, nil)
72
+ self.mapping_registry = MappingRegistry
73
+ init_methods
74
+ end
75
+
76
+ private
77
+
78
+ def init_methods
79
+ Methods.each do |definitions|
80
+ opt = definitions.last
81
+ if opt[:request_style] == :document
82
+ add_document_operation(*definitions)
83
+ else
84
+ add_rpc_operation(*definitions)
85
+ qname = definitions[0]
86
+ name = definitions[2]
87
+ if qname.name != name and qname.name.capitalize == name.capitalize
88
+ ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
89
+ __send__(name, *arg)
90
+ end
91
+ end
92
+ end
93
+ end
94
+ end
95
+ end
96
+
97
+ end