g4s_client 0.1.2

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,510 @@
1
+ require 'default.rb'
2
+ require 'soap/mapping'
3
+
4
+ module DefaultMappingRegistry
5
+ EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new
6
+ LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new
7
+ NsTempuriOrg = "http://tempuri.org/"
8
+
9
+ EncodedRegistry.register(
10
+ :class => AccessKeyResponse,
11
+ :schema_type => XSD::QName.new(NsTempuriOrg, "AccessKeyResponse"),
12
+ :schema_element => [
13
+ ["accessKey", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "AccessKey")], [0, 1]],
14
+ ["errorCode", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "ErrorCode")], [0, 1]],
15
+ ["errorMessage", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "ErrorMessage")], [0, 1]]
16
+ ]
17
+ )
18
+
19
+ EncodedRegistry.register(
20
+ :class => AccessKeyRequest,
21
+ :schema_type => XSD::QName.new(NsTempuriOrg, "AccessKeyRequest"),
22
+ :schema_element => [
23
+ ["userName", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "UserName")], [0, 1]],
24
+ ["password", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "Password")], [0, 1]],
25
+ ["companyZipCode", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "CompanyZipCode")], [0, 1]],
26
+ ["companyCityName", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "CompanyCityName")], [0, 1]]
27
+ ]
28
+ )
29
+
30
+ EncodedRegistry.register(
31
+ :class => G4SIAuthentication,
32
+ :schema_type => XSD::QName.new(NsTempuriOrg, "G4SIAuthentication"),
33
+ :schema_element => [
34
+ ["username", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "Username")], [0, 1]],
35
+ ["password", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "Password")], [0, 1]],
36
+ ["accessKey", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "AccessKey")], [0, 1]]
37
+ ]
38
+ )
39
+
40
+ EncodedRegistry.register(
41
+ :class => IPSResponse,
42
+ :schema_type => XSD::QName.new(NsTempuriOrg, "IPSResponse"),
43
+ :schema_element => [
44
+ ["result", ["ArrayOfAnyType", XSD::QName.new(NsTempuriOrg, "Result")], [0, 1]],
45
+ ["errors", ["IPSErrors", XSD::QName.new(NsTempuriOrg, "Errors")], [0, 1]]
46
+ ]
47
+ )
48
+
49
+ EncodedRegistry.register(
50
+ :class => ArrayOfAnyType,
51
+ :schema_type => XSD::QName.new(NsTempuriOrg, "ArrayOfAnyType"),
52
+ :schema_element => [
53
+ ["anyType", "[]", [0, nil]]
54
+ ]
55
+ )
56
+
57
+ EncodedRegistry.register(
58
+ :class => IPSErrors,
59
+ :schema_type => XSD::QName.new(NsTempuriOrg, "IPSErrors"),
60
+ :schema_element => [
61
+ ["errorCode", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "ErrorCode")], [0, 1]],
62
+ ["errorDescription", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "ErrorDescription")], [0, 1]],
63
+ ["status", ["SOAP::SOAPBoolean", XSD::QName.new(NsTempuriOrg, "Status")]],
64
+ ["innerException", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "InnerException")], [0, 1]]
65
+ ]
66
+ )
67
+
68
+ EncodedRegistry.register(
69
+ :class => Countries,
70
+ :schema_type => XSD::QName.new(NsTempuriOrg, "Countries"),
71
+ :schema_element => [
72
+ ["countryCode", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "CountryCode")], [0, 1]],
73
+ ["countryName", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "CountryName")], [0, 1]]
74
+ ]
75
+ )
76
+
77
+ LiteralRegistry.register(
78
+ :class => AccessKeyResponse,
79
+ :schema_type => XSD::QName.new(NsTempuriOrg, "AccessKeyResponse"),
80
+ :schema_element => [
81
+ ["accessKey", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "AccessKey")], [0, 1]],
82
+ ["errorCode", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "ErrorCode")], [0, 1]],
83
+ ["errorMessage", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "ErrorMessage")], [0, 1]]
84
+ ]
85
+ )
86
+
87
+ LiteralRegistry.register(
88
+ :class => AccessKeyRequest,
89
+ :schema_type => XSD::QName.new(NsTempuriOrg, "AccessKeyRequest"),
90
+ :schema_element => [
91
+ ["userName", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "UserName")], [0, 1]],
92
+ ["password", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "Password")], [0, 1]],
93
+ ["companyZipCode", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "CompanyZipCode")], [0, 1]],
94
+ ["companyCityName", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "CompanyCityName")], [0, 1]]
95
+ ]
96
+ )
97
+
98
+ LiteralRegistry.register(
99
+ :class => G4SIAuthentication,
100
+ :schema_type => XSD::QName.new(NsTempuriOrg, "G4SIAuthentication"),
101
+ :schema_element => [
102
+ ["username", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "Username")], [0, 1]],
103
+ ["password", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "Password")], [0, 1]],
104
+ ["accessKey", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "AccessKey")], [0, 1]]
105
+ ]
106
+ )
107
+
108
+ LiteralRegistry.register(
109
+ :class => IPSResponse,
110
+ :schema_type => XSD::QName.new(NsTempuriOrg, "IPSResponse"),
111
+ :schema_element => [
112
+ ["result", ["ArrayOfAnyType", XSD::QName.new(NsTempuriOrg, "Result")], [0, 1]],
113
+ ["errors", ["IPSErrors", XSD::QName.new(NsTempuriOrg, "Errors")], [0, 1]]
114
+ ]
115
+ )
116
+
117
+ LiteralRegistry.register(
118
+ :class => ArrayOfAnyType,
119
+ :schema_type => XSD::QName.new(NsTempuriOrg, "ArrayOfAnyType"),
120
+ :schema_element => [
121
+ ["anyType", "[]", [0, nil]]
122
+ ]
123
+ )
124
+
125
+ LiteralRegistry.register(
126
+ :class => IPSErrors,
127
+ :schema_type => XSD::QName.new(NsTempuriOrg, "IPSErrors"),
128
+ :schema_element => [
129
+ ["errorCode", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "ErrorCode")], [0, 1]],
130
+ ["errorDescription", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "ErrorDescription")], [0, 1]],
131
+ ["status", ["SOAP::SOAPBoolean", XSD::QName.new(NsTempuriOrg, "Status")]],
132
+ ["innerException", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "InnerException")], [0, 1]]
133
+ ]
134
+ )
135
+
136
+ LiteralRegistry.register(
137
+ :class => Countries,
138
+ :schema_type => XSD::QName.new(NsTempuriOrg, "Countries"),
139
+ :schema_element => [
140
+ ["countryCode", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "CountryCode")], [0, 1]],
141
+ ["countryName", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "CountryName")], [0, 1]]
142
+ ]
143
+ )
144
+
145
+ LiteralRegistry.register(
146
+ :class => GenerateAccessKey,
147
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GenerateAccessKey"),
148
+ :schema_element => []
149
+ )
150
+
151
+ LiteralRegistry.register(
152
+ :class => GenerateAccessKeyResponse,
153
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GenerateAccessKeyResponse"),
154
+ :schema_element => [
155
+ ["generateAccessKeyResult", ["AccessKeyResponse", XSD::QName.new(NsTempuriOrg, "GenerateAccessKeyResult")], [0, 1]]
156
+ ]
157
+ )
158
+
159
+ LiteralRegistry.register(
160
+ :class => AccessKeyRequest,
161
+ :schema_name => XSD::QName.new(NsTempuriOrg, "AccessKeyRequest"),
162
+ :schema_element => [
163
+ ["userName", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "UserName")], [0, 1]],
164
+ ["password", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "Password")], [0, 1]],
165
+ ["companyZipCode", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "CompanyZipCode")], [0, 1]],
166
+ ["companyCityName", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "CompanyCityName")], [0, 1]]
167
+ ]
168
+ )
169
+
170
+ LiteralRegistry.register(
171
+ :class => GetNewManifestNumber,
172
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetNewManifestNumber"),
173
+ :schema_element => []
174
+ )
175
+
176
+ LiteralRegistry.register(
177
+ :class => GetNewManifestNumberResponse,
178
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetNewManifestNumberResponse"),
179
+ :schema_element => [
180
+ ["getNewManifestNumberResult", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "GetNewManifestNumberResult")], [0, 1]]
181
+ ]
182
+ )
183
+
184
+ LiteralRegistry.register(
185
+ :class => G4SIAuthentication,
186
+ :schema_name => XSD::QName.new(NsTempuriOrg, "G4SIAuthentication"),
187
+ :schema_element => [
188
+ ["username", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "Username")], [0, 1]],
189
+ ["password", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "Password")], [0, 1]],
190
+ ["accessKey", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "AccessKey")], [0, 1]]
191
+ ]
192
+ )
193
+
194
+ LiteralRegistry.register(
195
+ :class => GetReferenceNumber,
196
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetReferenceNumber"),
197
+ :schema_element => [
198
+ ["custAcctNumber", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "CustAcctNumber")], [0, 1]],
199
+ ["declaredValue", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "DeclaredValue")], [0, 1]],
200
+ ["manifestNumber", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "ManifestNumber")], [0, 1]]
201
+ ]
202
+ )
203
+
204
+ LiteralRegistry.register(
205
+ :class => GetReferenceNumberResponse,
206
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetReferenceNumberResponse"),
207
+ :schema_element => [
208
+ ["getReferenceNumberResult", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "GetReferenceNumberResult")], [0, 1]]
209
+ ]
210
+ )
211
+
212
+ LiteralRegistry.register(
213
+ :class => GetG4SIPickupLocationList,
214
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetG4SIPickupLocationList"),
215
+ :schema_element => []
216
+ )
217
+
218
+ LiteralRegistry.register(
219
+ :class => GetG4SIPickupLocationListResponse,
220
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetG4SIPickupLocationListResponse"),
221
+ :schema_element => [
222
+ ["getG4SIPickupLocationListResult", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "GetG4SIPickupLocationListResult")], [0, 1]]
223
+ ]
224
+ )
225
+
226
+ LiteralRegistry.register(
227
+ :class => GetG4SICODCollectTypeList,
228
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetG4SICODCollectTypeList"),
229
+ :schema_element => []
230
+ )
231
+
232
+ LiteralRegistry.register(
233
+ :class => GetG4SICODCollectTypeListResponse,
234
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetG4SICODCollectTypeListResponse"),
235
+ :schema_element => [
236
+ ["getG4SICODCollectTypeListResult", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "GetG4SICODCollectTypeListResult")], [0, 1]]
237
+ ]
238
+ )
239
+
240
+ LiteralRegistry.register(
241
+ :class => GetG4SICurrencies,
242
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetG4SICurrencies"),
243
+ :schema_element => []
244
+ )
245
+
246
+ LiteralRegistry.register(
247
+ :class => GetG4SICurrenciesResponse,
248
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetG4SICurrenciesResponse"),
249
+ :schema_element => [
250
+ ["getG4SICurrenciesResult", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "GetG4SICurrenciesResult")], [0, 1]]
251
+ ]
252
+ )
253
+
254
+ LiteralRegistry.register(
255
+ :class => CompressedBytesToString,
256
+ :schema_name => XSD::QName.new(NsTempuriOrg, "CompressedBytesToString"),
257
+ :schema_element => [
258
+ ["compressedBytes", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "CompressedBytes")], [0, 1]]
259
+ ]
260
+ )
261
+
262
+ LiteralRegistry.register(
263
+ :class => CompressedBytesToStringResponse,
264
+ :schema_name => XSD::QName.new(NsTempuriOrg, "CompressedBytesToStringResponse"),
265
+ :schema_element => [
266
+ ["compressedBytesToStringResult", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "CompressedBytesToStringResult")], [0, 1]]
267
+ ]
268
+ )
269
+
270
+ LiteralRegistry.register(
271
+ :class => StringToCompressedBytes,
272
+ :schema_name => XSD::QName.new(NsTempuriOrg, "StringToCompressedBytes"),
273
+ :schema_element => [
274
+ ["inputString", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "InputString")], [0, 1]]
275
+ ]
276
+ )
277
+
278
+ LiteralRegistry.register(
279
+ :class => StringToCompressedBytesResponse,
280
+ :schema_name => XSD::QName.new(NsTempuriOrg, "StringToCompressedBytesResponse"),
281
+ :schema_element => [
282
+ ["stringToCompressedBytesResult", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "StringToCompressedBytesResult")], [0, 1]]
283
+ ]
284
+ )
285
+
286
+ LiteralRegistry.register(
287
+ :class => Login,
288
+ :schema_name => XSD::QName.new(NsTempuriOrg, "Login"),
289
+ :schema_element => []
290
+ )
291
+
292
+ LiteralRegistry.register(
293
+ :class => LoginResponse,
294
+ :schema_name => XSD::QName.new(NsTempuriOrg, "LoginResponse"),
295
+ :schema_element => [
296
+ ["loginResult", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "LoginResult")], [0, 1]]
297
+ ]
298
+ )
299
+
300
+ LiteralRegistry.register(
301
+ :class => GetAllCountries,
302
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetAllCountries"),
303
+ :schema_element => []
304
+ )
305
+
306
+ LiteralRegistry.register(
307
+ :class => GetAllCountriesResponse,
308
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetAllCountriesResponse"),
309
+ :schema_element => [
310
+ ["getAllCountriesResult", ["IPSResponse", XSD::QName.new(NsTempuriOrg, "GetAllCountriesResult")], [0, 1]]
311
+ ]
312
+ )
313
+
314
+ LiteralRegistry.register(
315
+ :class => Countries,
316
+ :schema_name => XSD::QName.new(NsTempuriOrg, "Countries"),
317
+ :schema_element => [
318
+ ["countryCode", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "CountryCode")], [0, 1]],
319
+ ["countryName", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "CountryName")], [0, 1]]
320
+ ]
321
+ )
322
+
323
+ LiteralRegistry.register(
324
+ :class => GetServiceLevelsByZip,
325
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetServiceLevelsByZip"),
326
+ :schema_element => [
327
+ ["receiverZipCode", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "ReceiverZipCode")], [0, 1]],
328
+ ["receiverCountryCode", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "ReceiverCountryCode")], [0, 1]],
329
+ ["currency", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "Currency")], [0, 1]],
330
+ ["originCountryCode", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "OriginCountryCode")], [0, 1]]
331
+ ]
332
+ )
333
+
334
+ LiteralRegistry.register(
335
+ :class => GetServiceLevelsByZipResponse,
336
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetServiceLevelsByZipResponse"),
337
+ :schema_element => [
338
+ ["getServiceLevelsByZipResult", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "GetServiceLevelsByZipResult")], [0, 1]]
339
+ ]
340
+ )
341
+
342
+ LiteralRegistry.register(
343
+ :class => GetSrvcLvls,
344
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetSrvcLvls"),
345
+ :schema_element => []
346
+ )
347
+
348
+ LiteralRegistry.register(
349
+ :class => GetSrvcLvlsResponse,
350
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetSrvcLvlsResponse"),
351
+ :schema_element => [
352
+ ["getSrvcLvlsResult", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "GetSrvcLvlsResult")], [0, 1]]
353
+ ]
354
+ )
355
+
356
+ LiteralRegistry.register(
357
+ :class => GetSrvcLvlByShipersCountryAndZip,
358
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetSrvcLvlByShipersCountryAndZip"),
359
+ :schema_element => [
360
+ ["countryCode", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "CountryCode")], [0, 1]]
361
+ ]
362
+ )
363
+
364
+ LiteralRegistry.register(
365
+ :class => GetSrvcLvlByShipersCountryAndZipResponse,
366
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetSrvcLvlByShipersCountryAndZipResponse"),
367
+ :schema_element => [
368
+ ["getSrvcLvlByShipersCountryAndZipResult", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "GetSrvcLvlByShipersCountryAndZipResult")], [0, 1]]
369
+ ]
370
+ )
371
+
372
+ LiteralRegistry.register(
373
+ :class => GetCarriersList,
374
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetCarriersList"),
375
+ :schema_element => []
376
+ )
377
+
378
+ LiteralRegistry.register(
379
+ :class => GetCarriersListResponse,
380
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetCarriersListResponse"),
381
+ :schema_element => [
382
+ ["getCarriersListResult", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "GetCarriersListResult")], [0, 1]]
383
+ ]
384
+ )
385
+
386
+ LiteralRegistry.register(
387
+ :class => GetPackageTypes,
388
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetPackageTypes"),
389
+ :schema_element => []
390
+ )
391
+
392
+ LiteralRegistry.register(
393
+ :class => GetPackageTypesResponse,
394
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetPackageTypesResponse"),
395
+ :schema_element => [
396
+ ["getPackageTypesResult", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "GetPackageTypesResult")], [0, 1]]
397
+ ]
398
+ )
399
+
400
+ LiteralRegistry.register(
401
+ :class => GetStatesByCountry,
402
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetStatesByCountry"),
403
+ :schema_element => [
404
+ ["countryCode", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "CountryCode")], [0, 1]]
405
+ ]
406
+ )
407
+
408
+ LiteralRegistry.register(
409
+ :class => GetStatesByCountryResponse,
410
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetStatesByCountryResponse"),
411
+ :schema_element => [
412
+ ["getStatesByCountryResult", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "GetStatesByCountryResult")], [0, 1]]
413
+ ]
414
+ )
415
+
416
+ LiteralRegistry.register(
417
+ :class => GetDimensions,
418
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetDimensions"),
419
+ :schema_element => []
420
+ )
421
+
422
+ LiteralRegistry.register(
423
+ :class => GetDimensionsResponse,
424
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetDimensionsResponse"),
425
+ :schema_element => [
426
+ ["getDimensionsResult", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "GetDimensionsResult")], [0, 1]]
427
+ ]
428
+ )
429
+
430
+ LiteralRegistry.register(
431
+ :class => GetHarmonizedCodes_CountryFrom,
432
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetHarmonizedCodes_CountryFrom"),
433
+ :schema_element => [
434
+ ["countryCode", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "CountryCode")], [0, 1]]
435
+ ]
436
+ )
437
+
438
+ LiteralRegistry.register(
439
+ :class => GetHarmonizedCodes_CountryFromResponse,
440
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetHarmonizedCodes_CountryFromResponse"),
441
+ :schema_element => [
442
+ ["getHarmonizedCodes_CountryFromResult", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "GetHarmonizedCodes_CountryFromResult")], [0, 1]]
443
+ ]
444
+ )
445
+
446
+ LiteralRegistry.register(
447
+ :class => GetHarmonizedCodes_CountryFrom_CountryTo,
448
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetHarmonizedCodes_CountryFrom_CountryTo"),
449
+ :schema_element => [
450
+ ["countryFromCode", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "CountryFromCode")], [0, 1]],
451
+ ["countryToCode", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "CountryToCode")], [0, 1]]
452
+ ]
453
+ )
454
+
455
+ LiteralRegistry.register(
456
+ :class => GetHarmonizedCodes_CountryFrom_CountryToResponse,
457
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetHarmonizedCodes_CountryFrom_CountryToResponse"),
458
+ :schema_element => [
459
+ ["getHarmonizedCodes_CountryFrom_CountryToResult", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "GetHarmonizedCodes_CountryFrom_CountryToResult")], [0, 1]]
460
+ ]
461
+ )
462
+
463
+ LiteralRegistry.register(
464
+ :class => GetCommodityMeasurmentsPerCarrier,
465
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetCommodityMeasurmentsPerCarrier"),
466
+ :schema_element => [
467
+ ["carrierName", ["SOAP::SOAPString", XSD::QName.new(NsTempuriOrg, "CarrierName")], [0, 1]]
468
+ ]
469
+ )
470
+
471
+ LiteralRegistry.register(
472
+ :class => GetCommodityMeasurmentsPerCarrierResponse,
473
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetCommodityMeasurmentsPerCarrierResponse"),
474
+ :schema_element => [
475
+ ["getCommodityMeasurmentsPerCarrierResult", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "GetCommodityMeasurmentsPerCarrierResult")], [0, 1]]
476
+ ]
477
+ )
478
+
479
+ LiteralRegistry.register(
480
+ :class => GetCarrierAcctInfo,
481
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetCarrierAcctInfo"),
482
+ :schema_element => [
483
+ ["carrierName", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "CarrierName")], [0, 1]],
484
+ ["userInfoXML", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "UserInfoXML")], [0, 1]],
485
+ ["billFreightTo", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "BillFreightTo")], [0, 1]]
486
+ ]
487
+ )
488
+
489
+ LiteralRegistry.register(
490
+ :class => GetCarrierAcctInfoResponse,
491
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetCarrierAcctInfoResponse"),
492
+ :schema_element => [
493
+ ["getCarrierAcctInfoResult", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "GetCarrierAcctInfoResult")], [0, 1]]
494
+ ]
495
+ )
496
+
497
+ LiteralRegistry.register(
498
+ :class => GetUserInfo,
499
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetUserInfo"),
500
+ :schema_element => []
501
+ )
502
+
503
+ LiteralRegistry.register(
504
+ :class => GetUserInfoResponse,
505
+ :schema_name => XSD::QName.new(NsTempuriOrg, "GetUserInfoResponse"),
506
+ :schema_element => [
507
+ ["getUserInfoResult", ["SOAP::SOAPBase64", XSD::QName.new(NsTempuriOrg, "GetUserInfoResult")], [0, 1]]
508
+ ]
509
+ )
510
+ end
@@ -0,0 +1,3 @@
1
+ module G4SClient
2
+ VERSION = '0.1.2'
3
+ end
data/notes.txt ADDED
@@ -0,0 +1,18 @@
1
+
2
+
3
+ # to regen the client:
4
+
5
+ wsdl2ruby.rb --wsdl https://ws.g4si.com/IPSshipping.asmx?wsdl --type client && \
6
+ rm lib/shipping/* ; echo && \
7
+ mv IPSShip*.rb lib/shipping/ && \
8
+ mv default*.rb lib/shipping/
9
+
10
+ wsdl2ruby.rb --wsdl https://ws.g4si.com/IPStracking.asmx?wsdl --type client && \
11
+ rm lib/tracking/* ; echo && \
12
+ mv IPSTrac*.rb lib/tracking/ && \
13
+ mv default*.rb lib/tracking/
14
+
15
+ wsdl2ruby.rb --wsdl https://ws.g4si.com/IPSutilities.asmx?wsdl --type client && \
16
+ rm lib/utilities/* ; echo && \
17
+ mv IPSUtil*.rb lib/utilities/ && \
18
+ mv default*.rb lib/utilities/
metadata ADDED
@@ -0,0 +1,87 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: g4s_client
3
+ version: !ruby/object:Gem::Version
4
+ hash: 31
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 2
10
+ version: 0.1.2
11
+ platform: ruby
12
+ authors:
13
+ - Rob Tierney
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-01-05 00:00:00 -05:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: G4S SOAP Client
23
+ email: robtierney@gmail.com
24
+ executables: []
25
+
26
+ extensions: []
27
+
28
+ extra_rdoc_files:
29
+ - README
30
+ files:
31
+ - .DS_Store
32
+ - .gitignore
33
+ - Gemfile
34
+ - README
35
+ - Rakefile
36
+ - g4s_client.gemspec
37
+ - lib/g4s/g4s.rb
38
+ - lib/g4s/shipping/IPSShippingClient.rb
39
+ - lib/g4s/shipping/default.rb
40
+ - lib/g4s/shipping/defaultDriver.rb
41
+ - lib/g4s/shipping/defaultMappingRegistry.rb
42
+ - lib/g4s/tracking/IPSTrackingClient.rb
43
+ - lib/g4s/tracking/default.rb
44
+ - lib/g4s/tracking/defaultDriver.rb
45
+ - lib/g4s/tracking/defaultMappingRegistry.rb
46
+ - lib/g4s/utilities/IPSUtilitiesClient.rb
47
+ - lib/g4s/utilities/default.rb
48
+ - lib/g4s/utilities/defaultDriver.rb
49
+ - lib/g4s/utilities/defaultMappingRegistry.rb
50
+ - lib/g4s/version.rb
51
+ - notes.txt
52
+ has_rdoc: true
53
+ homepage: http://github.com/robtierney/g4s_client
54
+ licenses: []
55
+
56
+ post_install_message:
57
+ rdoc_options:
58
+ - --charset=UTF-8
59
+ require_paths:
60
+ - lib
61
+ required_ruby_version: !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ hash: 3
67
+ segments:
68
+ - 0
69
+ version: "0"
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ hash: 3
76
+ segments:
77
+ - 0
78
+ version: "0"
79
+ requirements: []
80
+
81
+ rubyforge_project:
82
+ rubygems_version: 1.4.2
83
+ signing_key:
84
+ specification_version: 3
85
+ summary: G4S SOAP Client
86
+ test_files: []
87
+