adcenter-client 7.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.autotest +23 -0
- data/History.txt +6 -0
- data/Manifest.txt +55 -0
- data/README.txt +78 -0
- data/Rakefile.rb +31 -0
- data/TODO +12 -0
- data/bin/gen_wsdl_drivers.rb +26 -0
- data/bin/wsdl.yml +16 -0
- data/lib/AdministrationService.rb +79 -0
- data/lib/AdministrationServiceClient.rb +40 -0
- data/lib/AdministrationServiceDriver.rb +55 -0
- data/lib/AdministrationServiceMappingRegistry.rb +148 -0
- data/lib/CampaignManagementService.rb +3458 -0
- data/lib/CampaignManagementServiceClient.rb +1370 -0
- data/lib/CampaignManagementServiceDriver.rb +719 -0
- data/lib/CampaignManagementServiceMappingRegistry.rb +5107 -0
- data/lib/CustomerBillingService.rb +390 -0
- data/lib/CustomerBillingServiceClient.rb +126 -0
- data/lib/CustomerBillingServiceDriver.rb +95 -0
- data/lib/CustomerBillingServiceMappingRegistry.rb +676 -0
- data/lib/CustomerManagementService.rb +1284 -0
- data/lib/CustomerManagementServiceClient.rb +282 -0
- data/lib/CustomerManagementServiceDriver.rb +175 -0
- data/lib/CustomerManagementServiceMappingRegistry.rb +1471 -0
- data/lib/NotificationManagementClient.rb +89 -0
- data/lib/ReportingService.rb +2121 -0
- data/lib/ReportingServiceClient.rb +42 -0
- data/lib/ReportingServiceDriver.rb +55 -0
- data/lib/ReportingServiceMappingRegistry.rb +3164 -0
- data/lib/SecureDataManagementService.rb +203 -0
- data/lib/SecureDataManagementServiceClient.rb +26 -0
- data/lib/SecureDataManagementServiceDriver.rb +47 -0
- data/lib/SecureDataManagementServiceMappingRegistry.rb +376 -0
- data/lib/adcenter_client.rb +103 -0
- data/lib/adcenter_service.rb +70 -0
- data/lib/administration_service.rb +7 -0
- data/lib/campaign_management_service.rb +7 -0
- data/lib/custom_assertions.rb +5 -0
- data/lib/custom_exceptions.rb +1 -0
- data/lib/customer_billing_service.rb +7 -0
- data/lib/customer_management_service.rb +9 -0
- data/lib/default.rb +636 -0
- data/lib/defaultDriver.rb +63 -0
- data/lib/defaultMappingRegistry.rb +525 -0
- data/lib/notification_management.rb +7 -0
- data/lib/reporting_service.rb +7 -0
- data/lib/secure_data_management_service.rb +7 -0
- data/tasks/doctask.rake +9 -0
- data/tasks/testtask.rake +13 -0
- data/test/adcenter_client_test.rb +13 -0
- data/test/administration_service_test.rb +19 -0
- data/test/customer_management_service_test.rb +20 -0
- data/test/report_service_test.rb +34 -0
- data/test/test_credentials.yml-sample +7 -0
- data/test/test_helper.rb +8 -0
- metadata +188 -0
@@ -0,0 +1,282 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'CustomerManagementServiceDriver.rb'
|
3
|
+
|
4
|
+
endpoint_url = ARGV.shift
|
5
|
+
obj = ICustomerManagementService.new(endpoint_url)
|
6
|
+
|
7
|
+
# run ruby with -d to see SOAP wiredumps.
|
8
|
+
obj.wiredump_dev = STDERR if $DEBUG
|
9
|
+
|
10
|
+
# SYNOPSIS
|
11
|
+
# GetAccountsInfo(parameters)
|
12
|
+
#
|
13
|
+
# ARGS
|
14
|
+
# parameters GetAccountsInfoRequest - {https://adcenter.microsoft.com/api/customermanagement}GetAccountsInfoRequest
|
15
|
+
#
|
16
|
+
# RETURNS
|
17
|
+
# parameters GetAccountsInfoResponse - {https://adcenter.microsoft.com/api/customermanagement}GetAccountsInfoResponse
|
18
|
+
#
|
19
|
+
# RAISES
|
20
|
+
# detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
21
|
+
# detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
|
22
|
+
#
|
23
|
+
parameters = nil
|
24
|
+
puts obj.getAccountsInfo(parameters)
|
25
|
+
|
26
|
+
# SYNOPSIS
|
27
|
+
# AddAccount(parameters)
|
28
|
+
#
|
29
|
+
# ARGS
|
30
|
+
# parameters AddAccountRequest - {https://adcenter.microsoft.com/api/customermanagement}AddAccountRequest
|
31
|
+
#
|
32
|
+
# RETURNS
|
33
|
+
# parameters AddAccountResponse - {https://adcenter.microsoft.com/api/customermanagement}AddAccountResponse
|
34
|
+
#
|
35
|
+
# RAISES
|
36
|
+
# detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
37
|
+
# detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
|
38
|
+
#
|
39
|
+
parameters = nil
|
40
|
+
puts obj.addAccount(parameters)
|
41
|
+
|
42
|
+
# SYNOPSIS
|
43
|
+
# UpdateAccount(parameters)
|
44
|
+
#
|
45
|
+
# ARGS
|
46
|
+
# parameters UpdateAccountRequest - {https://adcenter.microsoft.com/api/customermanagement}UpdateAccountRequest
|
47
|
+
#
|
48
|
+
# RETURNS
|
49
|
+
# parameters UpdateAccountResponse - {https://adcenter.microsoft.com/api/customermanagement}UpdateAccountResponse
|
50
|
+
#
|
51
|
+
# RAISES
|
52
|
+
# detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
53
|
+
# detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
|
54
|
+
#
|
55
|
+
parameters = nil
|
56
|
+
puts obj.updateAccount(parameters)
|
57
|
+
|
58
|
+
# SYNOPSIS
|
59
|
+
# GetCustomer(parameters)
|
60
|
+
#
|
61
|
+
# ARGS
|
62
|
+
# parameters GetCustomerRequest - {https://adcenter.microsoft.com/api/customermanagement}GetCustomerRequest
|
63
|
+
#
|
64
|
+
# RETURNS
|
65
|
+
# parameters GetCustomerResponse - {https://adcenter.microsoft.com/api/customermanagement}GetCustomerResponse
|
66
|
+
#
|
67
|
+
# RAISES
|
68
|
+
# detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
69
|
+
# detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
|
70
|
+
#
|
71
|
+
parameters = nil
|
72
|
+
puts obj.getCustomer(parameters)
|
73
|
+
|
74
|
+
# SYNOPSIS
|
75
|
+
# UpdateCustomer(parameters)
|
76
|
+
#
|
77
|
+
# ARGS
|
78
|
+
# parameters UpdateCustomerRequest - {https://adcenter.microsoft.com/api/customermanagement}UpdateCustomerRequest
|
79
|
+
#
|
80
|
+
# RETURNS
|
81
|
+
# parameters UpdateCustomerResponse - {https://adcenter.microsoft.com/api/customermanagement}UpdateCustomerResponse
|
82
|
+
#
|
83
|
+
# RAISES
|
84
|
+
# detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
85
|
+
# detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
|
86
|
+
#
|
87
|
+
parameters = nil
|
88
|
+
puts obj.updateCustomer(parameters)
|
89
|
+
|
90
|
+
# SYNOPSIS
|
91
|
+
# SignupCustomer(parameters)
|
92
|
+
#
|
93
|
+
# ARGS
|
94
|
+
# parameters SignupCustomerRequest - {https://adcenter.microsoft.com/api/customermanagement}SignupCustomerRequest
|
95
|
+
#
|
96
|
+
# RETURNS
|
97
|
+
# parameters SignupCustomerResponse - {https://adcenter.microsoft.com/api/customermanagement}SignupCustomerResponse
|
98
|
+
#
|
99
|
+
# RAISES
|
100
|
+
# detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
101
|
+
# detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
|
102
|
+
#
|
103
|
+
parameters = nil
|
104
|
+
puts obj.signupCustomer(parameters)
|
105
|
+
|
106
|
+
# SYNOPSIS
|
107
|
+
# GetAccount(parameters)
|
108
|
+
#
|
109
|
+
# ARGS
|
110
|
+
# parameters GetAccountRequest - {https://adcenter.microsoft.com/api/customermanagement}GetAccountRequest
|
111
|
+
#
|
112
|
+
# RETURNS
|
113
|
+
# parameters GetAccountResponse - {https://adcenter.microsoft.com/api/customermanagement}GetAccountResponse
|
114
|
+
#
|
115
|
+
# RAISES
|
116
|
+
# detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
|
117
|
+
# detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
118
|
+
#
|
119
|
+
parameters = nil
|
120
|
+
puts obj.getAccount(parameters)
|
121
|
+
|
122
|
+
# SYNOPSIS
|
123
|
+
# GetCustomersInfo(parameters)
|
124
|
+
#
|
125
|
+
# ARGS
|
126
|
+
# parameters GetCustomersInfoRequest - {https://adcenter.microsoft.com/api/customermanagement}GetCustomersInfoRequest
|
127
|
+
#
|
128
|
+
# RETURNS
|
129
|
+
# parameters GetCustomersInfoResponse - {https://adcenter.microsoft.com/api/customermanagement}GetCustomersInfoResponse
|
130
|
+
#
|
131
|
+
# RAISES
|
132
|
+
# detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
133
|
+
# detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
|
134
|
+
#
|
135
|
+
parameters = nil
|
136
|
+
puts obj.getCustomersInfo(parameters)
|
137
|
+
|
138
|
+
# SYNOPSIS
|
139
|
+
# AddUser(parameters)
|
140
|
+
#
|
141
|
+
# ARGS
|
142
|
+
# parameters AddUserRequest - {https://adcenter.microsoft.com/api/customermanagement}AddUserRequest
|
143
|
+
#
|
144
|
+
# RETURNS
|
145
|
+
# parameters AddUserResponse - {https://adcenter.microsoft.com/api/customermanagement}AddUserResponse
|
146
|
+
#
|
147
|
+
# RAISES
|
148
|
+
# detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
149
|
+
# detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
|
150
|
+
#
|
151
|
+
parameters = nil
|
152
|
+
puts obj.addUser(parameters)
|
153
|
+
|
154
|
+
# SYNOPSIS
|
155
|
+
# DeleteAccount(parameters)
|
156
|
+
#
|
157
|
+
# ARGS
|
158
|
+
# parameters DeleteAccountRequest - {https://adcenter.microsoft.com/api/customermanagement}DeleteAccountRequest
|
159
|
+
#
|
160
|
+
# RETURNS
|
161
|
+
# parameters DeleteAccountResponse - {https://adcenter.microsoft.com/api/customermanagement}DeleteAccountResponse
|
162
|
+
#
|
163
|
+
# RAISES
|
164
|
+
# detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
|
165
|
+
# detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
166
|
+
#
|
167
|
+
parameters = nil
|
168
|
+
puts obj.deleteAccount(parameters)
|
169
|
+
|
170
|
+
# SYNOPSIS
|
171
|
+
# DeleteCustomer(parameters)
|
172
|
+
#
|
173
|
+
# ARGS
|
174
|
+
# parameters DeleteCustomerRequest - {https://adcenter.microsoft.com/api/customermanagement}DeleteCustomerRequest
|
175
|
+
#
|
176
|
+
# RETURNS
|
177
|
+
# parameters DeleteCustomerResponse - {https://adcenter.microsoft.com/api/customermanagement}DeleteCustomerResponse
|
178
|
+
#
|
179
|
+
# RAISES
|
180
|
+
# detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
|
181
|
+
# detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
182
|
+
#
|
183
|
+
parameters = nil
|
184
|
+
puts obj.deleteCustomer(parameters)
|
185
|
+
|
186
|
+
# SYNOPSIS
|
187
|
+
# UpdateUser(parameters)
|
188
|
+
#
|
189
|
+
# ARGS
|
190
|
+
# parameters UpdateUserRequest - {https://adcenter.microsoft.com/api/customermanagement}UpdateUserRequest
|
191
|
+
#
|
192
|
+
# RETURNS
|
193
|
+
# parameters UpdateUserResponse - {https://adcenter.microsoft.com/api/customermanagement}UpdateUserResponse
|
194
|
+
#
|
195
|
+
# RAISES
|
196
|
+
# detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
|
197
|
+
# detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
198
|
+
#
|
199
|
+
parameters = nil
|
200
|
+
puts obj.updateUser(parameters)
|
201
|
+
|
202
|
+
# SYNOPSIS
|
203
|
+
# UpdateUserRoles(parameters)
|
204
|
+
#
|
205
|
+
# ARGS
|
206
|
+
# parameters UpdateUserRolesRequest - {https://adcenter.microsoft.com/api/customermanagement}UpdateUserRolesRequest
|
207
|
+
#
|
208
|
+
# RETURNS
|
209
|
+
# parameters UpdateUserRolesResponse - {https://adcenter.microsoft.com/api/customermanagement}UpdateUserRolesResponse
|
210
|
+
#
|
211
|
+
# RAISES
|
212
|
+
# detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
213
|
+
# detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
|
214
|
+
#
|
215
|
+
parameters = nil
|
216
|
+
puts obj.updateUserRoles(parameters)
|
217
|
+
|
218
|
+
# SYNOPSIS
|
219
|
+
# GetUser(parameters)
|
220
|
+
#
|
221
|
+
# ARGS
|
222
|
+
# parameters GetUserRequest - {https://adcenter.microsoft.com/api/customermanagement}GetUserRequest
|
223
|
+
#
|
224
|
+
# RETURNS
|
225
|
+
# parameters GetUserResponse - {https://adcenter.microsoft.com/api/customermanagement}GetUserResponse
|
226
|
+
#
|
227
|
+
# RAISES
|
228
|
+
# detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
229
|
+
# detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
|
230
|
+
#
|
231
|
+
parameters = nil
|
232
|
+
puts obj.getUser(parameters)
|
233
|
+
|
234
|
+
# SYNOPSIS
|
235
|
+
# DeleteUser(parameters)
|
236
|
+
#
|
237
|
+
# ARGS
|
238
|
+
# parameters DeleteUserRequest - {https://adcenter.microsoft.com/api/customermanagement}DeleteUserRequest
|
239
|
+
#
|
240
|
+
# RETURNS
|
241
|
+
# parameters DeleteUserResponse - {https://adcenter.microsoft.com/api/customermanagement}DeleteUserResponse
|
242
|
+
#
|
243
|
+
# RAISES
|
244
|
+
# detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
|
245
|
+
# detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
246
|
+
#
|
247
|
+
parameters = nil
|
248
|
+
puts obj.deleteUser(parameters)
|
249
|
+
|
250
|
+
# SYNOPSIS
|
251
|
+
# GetUsersInfo(parameters)
|
252
|
+
#
|
253
|
+
# ARGS
|
254
|
+
# parameters GetUsersInfoRequest - {https://adcenter.microsoft.com/api/customermanagement}GetUsersInfoRequest
|
255
|
+
#
|
256
|
+
# RETURNS
|
257
|
+
# parameters GetUsersInfoResponse - {https://adcenter.microsoft.com/api/customermanagement}GetUsersInfoResponse
|
258
|
+
#
|
259
|
+
# RAISES
|
260
|
+
# detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
|
261
|
+
# detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
262
|
+
#
|
263
|
+
parameters = nil
|
264
|
+
puts obj.getUsersInfo(parameters)
|
265
|
+
|
266
|
+
# SYNOPSIS
|
267
|
+
# GetCustomerPilotFeature(parameters)
|
268
|
+
#
|
269
|
+
# ARGS
|
270
|
+
# parameters GetCustomerPilotFeatureRequest - {https://adcenter.microsoft.com/api/customermanagement}GetCustomerPilotFeatureRequest
|
271
|
+
#
|
272
|
+
# RETURNS
|
273
|
+
# parameters GetCustomerPilotFeatureResponse - {https://adcenter.microsoft.com/api/customermanagement}GetCustomerPilotFeatureResponse
|
274
|
+
#
|
275
|
+
# RAISES
|
276
|
+
# detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
277
|
+
# detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
|
278
|
+
#
|
279
|
+
parameters = nil
|
280
|
+
puts obj.getCustomerPilotFeature(parameters)
|
281
|
+
|
282
|
+
|
@@ -0,0 +1,175 @@
|
|
1
|
+
require 'CustomerManagementService.rb'
|
2
|
+
require 'CustomerManagementServiceMappingRegistry.rb'
|
3
|
+
require 'soap/rpc/driver'
|
4
|
+
|
5
|
+
class ICustomerManagementService < ::SOAP::RPC::Driver
|
6
|
+
DefaultEndpointUrl = "https://sharedservices.adcenterapi.microsoft.com/Api/CustomerManagement/v7/CustomerManagementService.svc"
|
7
|
+
|
8
|
+
Methods = [
|
9
|
+
[ "GetAccountsInfo",
|
10
|
+
"getAccountsInfo",
|
11
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "GetAccountsInfoRequest"]],
|
12
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "GetAccountsInfoResponse"]] ],
|
13
|
+
{ :request_style => :document, :request_use => :literal,
|
14
|
+
:response_style => :document, :response_use => :literal,
|
15
|
+
:faults => {"ApiFaultFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"ApiFaultFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}, "AdApiFaultDetailFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"AdApiFaultDetailFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}} }
|
16
|
+
],
|
17
|
+
[ "AddAccount",
|
18
|
+
"addAccount",
|
19
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "AddAccountRequest"]],
|
20
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "AddAccountResponse"]] ],
|
21
|
+
{ :request_style => :document, :request_use => :literal,
|
22
|
+
:response_style => :document, :response_use => :literal,
|
23
|
+
:faults => {"ApiFaultFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"ApiFaultFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}, "AdApiFaultDetailFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"AdApiFaultDetailFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}} }
|
24
|
+
],
|
25
|
+
[ "UpdateAccount",
|
26
|
+
"updateAccount",
|
27
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "UpdateAccountRequest"]],
|
28
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "UpdateAccountResponse"]] ],
|
29
|
+
{ :request_style => :document, :request_use => :literal,
|
30
|
+
:response_style => :document, :response_use => :literal,
|
31
|
+
:faults => {"ApiFaultFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"ApiFaultFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}, "AdApiFaultDetailFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"AdApiFaultDetailFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}} }
|
32
|
+
],
|
33
|
+
[ "GetCustomer",
|
34
|
+
"getCustomer",
|
35
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "GetCustomerRequest"]],
|
36
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "GetCustomerResponse"]] ],
|
37
|
+
{ :request_style => :document, :request_use => :literal,
|
38
|
+
:response_style => :document, :response_use => :literal,
|
39
|
+
:faults => {"ApiFaultFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"ApiFaultFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}, "AdApiFaultDetailFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"AdApiFaultDetailFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}} }
|
40
|
+
],
|
41
|
+
[ "UpdateCustomer",
|
42
|
+
"updateCustomer",
|
43
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "UpdateCustomerRequest"]],
|
44
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "UpdateCustomerResponse"]] ],
|
45
|
+
{ :request_style => :document, :request_use => :literal,
|
46
|
+
:response_style => :document, :response_use => :literal,
|
47
|
+
:faults => {"ApiFaultFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"ApiFaultFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}, "AdApiFaultDetailFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"AdApiFaultDetailFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}} }
|
48
|
+
],
|
49
|
+
[ "SignupCustomer",
|
50
|
+
"signupCustomer",
|
51
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "SignupCustomerRequest"]],
|
52
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "SignupCustomerResponse"]] ],
|
53
|
+
{ :request_style => :document, :request_use => :literal,
|
54
|
+
:response_style => :document, :response_use => :literal,
|
55
|
+
:faults => {"ApiFaultFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"ApiFaultFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}, "AdApiFaultDetailFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"AdApiFaultDetailFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}} }
|
56
|
+
],
|
57
|
+
[ "GetAccount",
|
58
|
+
"getAccount",
|
59
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "GetAccountRequest"]],
|
60
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "GetAccountResponse"]] ],
|
61
|
+
{ :request_style => :document, :request_use => :literal,
|
62
|
+
:response_style => :document, :response_use => :literal,
|
63
|
+
:faults => {"ApiFaultFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"ApiFaultFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}, "AdApiFaultDetailFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"AdApiFaultDetailFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}} }
|
64
|
+
],
|
65
|
+
[ "GetCustomersInfo",
|
66
|
+
"getCustomersInfo",
|
67
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "GetCustomersInfoRequest"]],
|
68
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "GetCustomersInfoResponse"]] ],
|
69
|
+
{ :request_style => :document, :request_use => :literal,
|
70
|
+
:response_style => :document, :response_use => :literal,
|
71
|
+
:faults => {"ApiFaultFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"ApiFaultFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}, "AdApiFaultDetailFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"AdApiFaultDetailFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}} }
|
72
|
+
],
|
73
|
+
[ "AddUser",
|
74
|
+
"addUser",
|
75
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "AddUserRequest"]],
|
76
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "AddUserResponse"]] ],
|
77
|
+
{ :request_style => :document, :request_use => :literal,
|
78
|
+
:response_style => :document, :response_use => :literal,
|
79
|
+
:faults => {"ApiFaultFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"ApiFaultFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}, "AdApiFaultDetailFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"AdApiFaultDetailFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}} }
|
80
|
+
],
|
81
|
+
[ "DeleteAccount",
|
82
|
+
"deleteAccount",
|
83
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "DeleteAccountRequest"]],
|
84
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "DeleteAccountResponse"]] ],
|
85
|
+
{ :request_style => :document, :request_use => :literal,
|
86
|
+
:response_style => :document, :response_use => :literal,
|
87
|
+
:faults => {"ApiFaultFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"ApiFaultFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}, "AdApiFaultDetailFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"AdApiFaultDetailFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}} }
|
88
|
+
],
|
89
|
+
[ "DeleteCustomer",
|
90
|
+
"deleteCustomer",
|
91
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "DeleteCustomerRequest"]],
|
92
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "DeleteCustomerResponse"]] ],
|
93
|
+
{ :request_style => :document, :request_use => :literal,
|
94
|
+
:response_style => :document, :response_use => :literal,
|
95
|
+
:faults => {"ApiFaultFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"ApiFaultFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}, "AdApiFaultDetailFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"AdApiFaultDetailFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}} }
|
96
|
+
],
|
97
|
+
[ "UpdateUser",
|
98
|
+
"updateUser",
|
99
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "UpdateUserRequest"]],
|
100
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "UpdateUserResponse"]] ],
|
101
|
+
{ :request_style => :document, :request_use => :literal,
|
102
|
+
:response_style => :document, :response_use => :literal,
|
103
|
+
:faults => {"ApiFaultFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"ApiFaultFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}, "AdApiFaultDetailFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"AdApiFaultDetailFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}} }
|
104
|
+
],
|
105
|
+
[ "UpdateUserRoles",
|
106
|
+
"updateUserRoles",
|
107
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "UpdateUserRolesRequest"]],
|
108
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "UpdateUserRolesResponse"]] ],
|
109
|
+
{ :request_style => :document, :request_use => :literal,
|
110
|
+
:response_style => :document, :response_use => :literal,
|
111
|
+
:faults => {"ApiFaultFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"ApiFaultFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}, "AdApiFaultDetailFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"AdApiFaultDetailFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}} }
|
112
|
+
],
|
113
|
+
[ "GetUser",
|
114
|
+
"getUser",
|
115
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "GetUserRequest"]],
|
116
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "GetUserResponse"]] ],
|
117
|
+
{ :request_style => :document, :request_use => :literal,
|
118
|
+
:response_style => :document, :response_use => :literal,
|
119
|
+
:faults => {"ApiFaultFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"ApiFaultFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}, "AdApiFaultDetailFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"AdApiFaultDetailFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}} }
|
120
|
+
],
|
121
|
+
[ "DeleteUser",
|
122
|
+
"deleteUser",
|
123
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "DeleteUserRequest"]],
|
124
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "DeleteUserResponse"]] ],
|
125
|
+
{ :request_style => :document, :request_use => :literal,
|
126
|
+
:response_style => :document, :response_use => :literal,
|
127
|
+
:faults => {"ApiFaultFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"ApiFaultFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}, "AdApiFaultDetailFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"AdApiFaultDetailFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}} }
|
128
|
+
],
|
129
|
+
[ "GetUsersInfo",
|
130
|
+
"getUsersInfo",
|
131
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "GetUsersInfoRequest"]],
|
132
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "GetUsersInfoResponse"]] ],
|
133
|
+
{ :request_style => :document, :request_use => :literal,
|
134
|
+
:response_style => :document, :response_use => :literal,
|
135
|
+
:faults => {"ApiFaultFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"ApiFaultFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}, "AdApiFaultDetailFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"AdApiFaultDetailFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}} }
|
136
|
+
],
|
137
|
+
[ "GetCustomerPilotFeature",
|
138
|
+
"getCustomerPilotFeature",
|
139
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "GetCustomerPilotFeatureRequest"]],
|
140
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/customermanagement", "GetCustomerPilotFeatureResponse"]] ],
|
141
|
+
{ :request_style => :document, :request_use => :literal,
|
142
|
+
:response_style => :document, :response_use => :literal,
|
143
|
+
:faults => {"ApiFaultFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"ApiFaultFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}, "AdApiFaultDetailFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"AdApiFaultDetailFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/customermanagement"}} }
|
144
|
+
]
|
145
|
+
]
|
146
|
+
|
147
|
+
def initialize(endpoint_url = nil)
|
148
|
+
endpoint_url ||= DefaultEndpointUrl
|
149
|
+
super(endpoint_url, nil)
|
150
|
+
self.mapping_registry = CustomerManagementServiceMappingRegistry::EncodedRegistry
|
151
|
+
self.literal_mapping_registry = CustomerManagementServiceMappingRegistry::LiteralRegistry
|
152
|
+
init_methods
|
153
|
+
end
|
154
|
+
|
155
|
+
private
|
156
|
+
|
157
|
+
def init_methods
|
158
|
+
Methods.each do |definitions|
|
159
|
+
opt = definitions.last
|
160
|
+
if opt[:request_style] == :document
|
161
|
+
add_document_operation(*definitions)
|
162
|
+
else
|
163
|
+
add_rpc_operation(*definitions)
|
164
|
+
qname = definitions[0]
|
165
|
+
name = definitions[2]
|
166
|
+
if qname.name != name and qname.name.capitalize == name.capitalize
|
167
|
+
::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
|
168
|
+
__send__(name, *arg)
|
169
|
+
end
|
170
|
+
end
|
171
|
+
end
|
172
|
+
end
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|