sirius-client-web 2013.4.1.0

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,223 @@
1
+ require 'xsd/qname'
2
+
3
+ module Sirius; module Client; module Win32; module Core; module Select
4
+
5
+ # {http:web.server.sirius.org/}deselectByVisibleText
6
+ # arg0 - SOAP::SOAPString
7
+ # arg1 - SOAP::SOAPString
8
+ # arg2 - SOAP::SOAPString
9
+ # arg3 - SOAP::SOAPString
10
  class DeselectByVisibleText
11
+ attr_accessor :arg0
12
+ attr_accessor :arg1
13
+ attr_accessor :arg2
14
+ attr_accessor :arg3
15
+ def initialize(arg0 = nil, arg1 = nil, arg2 = nil, arg3 = nil) @arg0 = arg0
16
+ @arg1 = arg1
17
+ @arg2 = arg2
18
+ @arg3 = arg3
19
+ end
20
+ end
21
+ # {http:web.server.sirius.org/}deselectByVisibleTextResponse
22
+ class DeselectByVisibleTextResponse
1
23
  def initialize
24
+ end
25
+ end
26
+ # {http:web.server.sirius.org/}selectByValue
27
+ # arg0 - SOAP::SOAPString
28
+ # arg1 - SOAP::SOAPString
29
+ # arg2 - SOAP::SOAPString
30
+ # arg3 - SOAP::SOAPString
31
+ class SelectByValue
32
+ attr_accessor :arg0
33
+ attr_accessor :arg1
34
+ attr_accessor :arg2
35
+ attr_accessor :arg3
36
+ def initialize(arg0 = nil, arg1 = nil, arg2 = nil, arg3 = nil) @arg0 = arg0
37
+ @arg1 = arg1
38
+ @arg2 = arg2
39
+ @arg3 = arg3
40
+ end
41
+ end
42
+ # {http:web.server.sirius.org/}selectByValueResponse
43
+ class SelectByValueResponse
2
44
  def initialize
45
+ end
46
+ end
47
+ # {http:web.server.sirius.org/}selectByVisibleText
48
+ # arg0 - SOAP::SOAPString
49
+ # arg1 - SOAP::SOAPString
50
+ # arg2 - SOAP::SOAPString
51
+ # arg3 - SOAP::SOAPString
52
+ class SelectByVisibleText
53
+ attr_accessor :arg0
54
+ attr_accessor :arg1
55
+ attr_accessor :arg2
56
+ attr_accessor :arg3
57
+ def initialize(arg0 = nil, arg1 = nil, arg2 = nil, arg3 = nil) @arg0 = arg0
58
+ @arg1 = arg1
59
+ @arg2 = arg2
60
+ @arg3 = arg3
61
+ end
62
+ end
63
+ # {http:web.server.sirius.org/}selectByVisibleTextResponse
64
+ class SelectByVisibleTextResponse
3
65
  def initialize
66
+ end
67
+ end
68
+ # {http:web.server.sirius.org/}getAllSelectedOptions
69
+ # arg0 - SOAP::SOAPString
70
+ # arg1 - SOAP::SOAPString
71
+ # arg2 - SOAP::SOAPString
72
+ class GetAllSelectedOptions
73
+ attr_accessor :arg0
74
+ attr_accessor :arg1
75
+ attr_accessor :arg2
76
+ def initialize(arg0 = nil, arg1 = nil, arg2 = nil) @arg0 = arg0
77
+ @arg1 = arg1
78
+ @arg2 = arg2
79
+ end
80
+ end
81
+ # {http:web.server.sirius.org/}getAllSelectedOptionsResponse
82
+ class GetAllSelectedOptionsResponse < ::Array
83
+ end
84
+ # {http:web.server.sirius.org/}deselectByIndex
85
+ # arg0 - SOAP::SOAPString
86
+ # arg1 - SOAP::SOAPString
87
+ # arg2 - SOAP::SOAPString
88
+ # arg3 - SOAP::SOAPInt
89
+ class DeselectByIndex
90
+ attr_accessor :arg0
91
+ attr_accessor :arg1
92
+ attr_accessor :arg2
93
+ attr_accessor :arg3
94
+ def initialize(arg0 = nil, arg1 = nil, arg2 = nil, arg3 = nil) @arg0 = arg0
95
+ @arg1 = arg1
96
+ @arg2 = arg2
97
+ @arg3 = arg3
98
+ end
99
+ end
100
+ # {http:web.server.sirius.org/}deselectByIndexResponse
101
+ class DeselectByIndexResponse
4
102
  def initialize
103
+ end
104
+ end
105
+ # {http:web.server.sirius.org/}deselectAll
106
+ # arg0 - SOAP::SOAPString
107
+ # arg1 - SOAP::SOAPString
108
+ # arg2 - SOAP::SOAPString
109
+ class DeselectAll
110
+ attr_accessor :arg0
111
+ attr_accessor :arg1
112
+ attr_accessor :arg2
113
+ def initialize(arg0 = nil, arg1 = nil, arg2 = nil) @arg0 = arg0
114
+ @arg1 = arg1
115
+ @arg2 = arg2
116
+ end
117
+ end
118
+ # {http:web.server.sirius.org/}deselectAllResponse
119
+ class DeselectAllResponse
5
120
  def initialize
121
+ end
122
+ end
123
+ # {http:web.server.sirius.org/}selectByIndex
124
+ # arg0 - SOAP::SOAPString
125
+ # arg1 - SOAP::SOAPString
126
+ # arg2 - SOAP::SOAPString
127
+ # arg3 - SOAP::SOAPInt
128
+ class SelectByIndex
129
+ attr_accessor :arg0
130
+ attr_accessor :arg1
131
+ attr_accessor :arg2
132
+ attr_accessor :arg3
133
+ def initialize(arg0 = nil, arg1 = nil, arg2 = nil, arg3 = nil) @arg0 = arg0
134
+ @arg1 = arg1
135
+ @arg2 = arg2
136
+ @arg3 = arg3
137
+ end
138
+ end
139
+ # {http:web.server.sirius.org/}selectByIndexResponse
140
+ class SelectByIndexResponse
6
141
  def initialize
142
+ end
143
+ end
144
+ # {http:web.server.sirius.org/}getAllOptions
145
+ # arg0 - SOAP::SOAPString
146
+ # arg1 - SOAP::SOAPString
147
+ # arg2 - SOAP::SOAPString
148
+ class GetAllOptions
149
+ attr_accessor :arg0
150
+ attr_accessor :arg1
151
+ attr_accessor :arg2
152
+ def initialize(arg0 = nil, arg1 = nil, arg2 = nil) @arg0 = arg0
153
+ @arg1 = arg1
154
+ @arg2 = arg2
155
+ end
156
+ end
157
+ # {http:web.server.sirius.org/}getAllOptionsResponse
158
+ class GetAllOptionsResponse < ::Array
159
+ end
160
+ # {http:web.server.sirius.org/}getFirstSelectedOption
161
+ # arg0 - SOAP::SOAPString
162
+ # arg1 - SOAP::SOAPString
163
+ # arg2 - SOAP::SOAPString
164
+ class GetFirstSelectedOption
165
+ attr_accessor :arg0
166
+ attr_accessor :arg1
167
+ attr_accessor :arg2
168
+ def initialize(arg0 = nil, arg1 = nil, arg2 = nil) @arg0 = arg0
169
+ @arg1 = arg1
170
+ @arg2 = arg2
171
+ end
172
+ end
173
+ # {http:web.server.sirius.org/}getFirstSelectedOptionResponse
174
+ # m_return - SOAP::SOAPString
175
+ class GetFirstSelectedOptionResponse
7
176
  def m_return
177
+ @v_return
8
178
  end
179
+
180
+ def m_return=(value) @v_return = value
181
+ end
182
+
183
+ def initialize(v_return = nil) @v_return = v_return
184
+ end
185
+ end
186
+ # {http:web.server.sirius.org/}isMultiple
187
+ # arg0 - SOAP::SOAPString
188
+ # arg1 - SOAP::SOAPString
189
+ # arg2 - SOAP::SOAPString
190
+ class IsMultiple
191
+ attr_accessor :arg0
192
+ attr_accessor :arg1
193
+ attr_accessor :arg2
194
+ def initialize(arg0 = nil, arg1 = nil, arg2 = nil) @arg0 = arg0
195
+ @arg1 = arg1
196
+ @arg2 = arg2
197
+ end
198
+ end
199
+ # {http:web.server.sirius.org/}isMultipleResponse
200
+ # m_return - SOAP::SOAPBoolean
201
+ class IsMultipleResponse
9
202
  def m_return
203
+ @v_return
204
+ end
205
+
206
+ def m_return=(value) @v_return = value
207
+ end
208
+
209
+ def initialize(v_return = nil) @v_return = v_return
210
+ end
211
+ end
212
+ # {http:web.server.sirius.org/}deselectByValue
213
+ # arg0 - SOAP::SOAPString
214
+ # arg1 - SOAP::SOAPString
215
+ # arg2 - SOAP::SOAPString
216
+ # arg3 - SOAP::SOAPString
217
+ class DeselectByValue
218
+ attr_accessor :arg0
219
+ attr_accessor :arg1
220
+ attr_accessor :arg2
221
+ attr_accessor :arg3
222
+ def initialize(arg0 = nil, arg1 = nil, arg2 = nil, arg3 = nil) @arg0 = arg0
223
+ @arg1 = arg1
224
+ @arg2 = arg2
225
+ @arg3 = arg3
226
+ end
227
+ end
228
+ # {http:web.server.sirius.org/}deselectByValueResponse
229
+ class DeselectByValueResponse
10
230
  def initialize
231
+ end
232
+ end
233
+
234
+ end; end; end; end; end
@@ -0,0 +1,148 @@
1
+ #!/usr/bin/env ruby
2
+ require 'WebSelectServiceDriver.rb'
3
+
4
+
5
+ Sirius::Client::Win32::Core::Select
6
+
7
+ endpoint_url = ARGV.shift
8
+ obj = WebSelect.new(endpoint_url)
9
+
10
+ # run ruby with -d to see SOAP wiredumps.
11
+ obj.wiredump_dev = STDERR if $DEBUG
12
+
13
+ # SYNOPSIS
14
+ # deselectAll(parameters)
15
+ #
16
+ # ARGS
17
+ # parameters DeselectAll - {http://web.server.sirius.org/}deselectAll
18
+ #
19
+ # RETURNS
20
+ # parameters DeselectAllResponse - {http://web.server.sirius.org/}deselectAllResponse
21
+ #
22
+ parameters = nil
23
+ puts obj.deselectAll(parameters)
24
+
25
+ # SYNOPSIS
26
+ # isMultiple(parameters)
27
+ #
28
+ # ARGS
29
+ # parameters IsMultiple - {http://web.server.sirius.org/}isMultiple
30
+ #
31
+ # RETURNS
32
+ # parameters IsMultipleResponse - {http://web.server.sirius.org/}isMultipleResponse
33
+ #
34
+ parameters = nil
35
+ puts obj.isMultiple(parameters)
36
+
37
+ # SYNOPSIS
38
+ # deselectByIndex(parameters)
39
+ #
40
+ # ARGS
41
+ # parameters DeselectByIndex - {http://web.server.sirius.org/}deselectByIndex
42
+ #
43
+ # RETURNS
44
+ # parameters DeselectByIndexResponse - {http://web.server.sirius.org/}deselectByIndexResponse
45
+ #
46
+ parameters = nil
47
+ puts obj.deselectByIndex(parameters)
48
+
49
+ # SYNOPSIS
50
+ # deselectByValue(parameters)
51
+ #
52
+ # ARGS
53
+ # parameters DeselectByValue - {http://web.server.sirius.org/}deselectByValue
54
+ #
55
+ # RETURNS
56
+ # parameters DeselectByValueResponse - {http://web.server.sirius.org/}deselectByValueResponse
57
+ #
58
+ parameters = nil
59
+ puts obj.deselectByValue(parameters)
60
+
61
+ # SYNOPSIS
62
+ # getAllOptions(parameters)
63
+ #
64
+ # ARGS
65
+ # parameters GetAllOptions - {http://web.server.sirius.org/}getAllOptions
66
+ #
67
+ # RETURNS
68
+ # parameters GetAllOptionsResponse - {http://web.server.sirius.org/}getAllOptionsResponse
69
+ #
70
+ parameters = nil
71
+ puts obj.getAllOptions(parameters)
72
+
73
+ # SYNOPSIS
74
+ # selectByIndex(parameters)
75
+ #
76
+ # ARGS
77
+ # parameters SelectByIndex - {http://web.server.sirius.org/}selectByIndex
78
+ #
79
+ # RETURNS
80
+ # parameters SelectByIndexResponse - {http://web.server.sirius.org/}selectByIndexResponse
81
+ #
82
+ parameters = nil
83
+ puts obj.selectByIndex(parameters)
84
+
85
+ # SYNOPSIS
86
+ # selectByValue(parameters)
87
+ #
88
+ # ARGS
89
+ # parameters SelectByValue - {http://web.server.sirius.org/}selectByValue
90
+ #
91
+ # RETURNS
92
+ # parameters SelectByValueResponse - {http://web.server.sirius.org/}selectByValueResponse
93
+ #
94
+ parameters = nil
95
+ puts obj.selectByValue(parameters)
96
+
97
+ # SYNOPSIS
98
+ # selectByVisibleText(parameters)
99
+ #
100
+ # ARGS
101
+ # parameters SelectByVisibleText - {http://web.server.sirius.org/}selectByVisibleText
102
+ #
103
+ # RETURNS
104
+ # parameters SelectByVisibleTextResponse - {http://web.server.sirius.org/}selectByVisibleTextResponse
105
+ #
106
+ parameters = nil
107
+ puts obj.selectByVisibleText(parameters)
108
+
109
+ # SYNOPSIS
110
+ # getAllSelectedOptions(parameters)
111
+ #
112
+ # ARGS
113
+ # parameters GetAllSelectedOptions - {http://web.server.sirius.org/}getAllSelectedOptions
114
+ #
115
+ # RETURNS
116
+ # parameters GetAllSelectedOptionsResponse - {http://web.server.sirius.org/}getAllSelectedOptionsResponse
117
+ #
118
+ parameters = nil
119
+ puts obj.getAllSelectedOptions(parameters)
120
+
121
+ # SYNOPSIS
122
+ # getFirstSelectedOption(parameters)
123
+ #
124
+ # ARGS
125
+ # parameters GetFirstSelectedOption - {http://web.server.sirius.org/}getFirstSelectedOption
126
+ #
127
+ # RETURNS
128
+ # parameters GetFirstSelectedOptionResponse - {http://web.server.sirius.org/}getFirstSelectedOptionResponse
129
+ #
130
+ parameters = nil
131
+ puts obj.getFirstSelectedOption(parameters)
132
+
133
+ # SYNOPSIS
134
+ # deselectByVisibleText(parameters)
135
+ #
136
+ # ARGS
137
+ # parameters DeselectByVisibleText - {http://web.server.sirius.org/}deselectByVisibleText
138
+ #
139
+ # RETURNS
140
+ # parameters DeselectByVisibleTextResponse - {http://web.server.sirius.org/}deselectByVisibleTextResponse
141
+ #
142
+ parameters = nil
143
+ puts obj.deselectByVisibleText(parameters)
144
+
145
+
146
+
147
+
148
+ Sirius::Client::Win32::Core::Select
@@ -0,0 +1,128 @@
1
+ require 'WebSelectService.rb'
2
+ require 'WebSelectServiceMappingRegistry.rb'
3
+ require 'soap/rpc/driver'
4
+
5
+ module Sirius::Client::Win32::Core::Select
6
+
7
+
8
+ class WebSelect < ::SOAP::RPC::Driver DefaultEndpointUrl = "http:localhost:21212/web/select"
9
+ Methods = [
10
+ [ "",
11
+ "deselectAll",
12
+ [ [:in, "parameters", ["::SOAP::SOAPElement", "http:web.server.sirius.org/", "deselectAll"]],
13
+ [:out, "parameters", ["::SOAP::SOAPElement", "http:web.server.sirius.org/", "deselectAllResponse"]] ],
14
+ { :request_style => :document, :request_use => :literal,
15
+ :response_style => :document, :response_use => :literal,
16
+ :faults => {} }
17
+ ],
18
+ [ "",
19
+ "isMultiple",
20
+ [ [:in, "parameters", ["::SOAP::SOAPElement", "http:web.server.sirius.org/", "isMultiple"]],
21
+ [:out, "parameters", ["::SOAP::SOAPElement", "http:web.server.sirius.org/", "isMultipleResponse"]] ],
22
+ { :request_style => :document, :request_use => :literal,
23
+ :response_style => :document, :response_use => :literal,
24
+ :faults => {} }
25
+ ],
26
+ [ "",
27
+ "deselectByIndex",
28
+ [ [:in, "parameters", ["::SOAP::SOAPElement", "http:web.server.sirius.org/", "deselectByIndex"]],
29
+ [:out, "parameters", ["::SOAP::SOAPElement", "http:web.server.sirius.org/", "deselectByIndexResponse"]] ],
30
+ { :request_style => :document, :request_use => :literal,
31
+ :response_style => :document, :response_use => :literal,
32
+ :faults => {} }
33
+ ],
34
+ [ "",
35
+ "deselectByValue",
36
+ [ [:in, "parameters", ["::SOAP::SOAPElement", "http:web.server.sirius.org/", "deselectByValue"]],
37
+ [:out, "parameters", ["::SOAP::SOAPElement", "http:web.server.sirius.org/", "deselectByValueResponse"]] ],
38
+ { :request_style => :document, :request_use => :literal,
39
+ :response_style => :document, :response_use => :literal,
40
+ :faults => {} }
41
+ ],
42
+ [ "",
43
+ "getAllOptions",
44
+ [ [:in, "parameters", ["::SOAP::SOAPElement", "http:web.server.sirius.org/", "getAllOptions"]],
45
+ [:out, "parameters", ["::SOAP::SOAPElement", "http:web.server.sirius.org/", "getAllOptionsResponse"]] ],
46
+ { :request_style => :document, :request_use => :literal,
47
+ :response_style => :document, :response_use => :literal,
48
+ :faults => {} }
49
+ ],
50
+ [ "",
51
+ "selectByIndex",
52
+ [ [:in, "parameters", ["::SOAP::SOAPElement", "http:web.server.sirius.org/", "selectByIndex"]],
53
+ [:out, "parameters", ["::SOAP::SOAPElement", "http:web.server.sirius.org/", "selectByIndexResponse"]] ],
54
+ { :request_style => :document, :request_use => :literal,
55
+ :response_style => :document, :response_use => :literal,
56
+ :faults => {} }
57
+ ],
58
+ [ "",
59
+ "selectByValue",
60
+ [ [:in, "parameters", ["::SOAP::SOAPElement", "http:web.server.sirius.org/", "selectByValue"]],
61
+ [:out, "parameters", ["::SOAP::SOAPElement", "http:web.server.sirius.org/", "selectByValueResponse"]] ],
62
+ { :request_style => :document, :request_use => :literal,
63
+ :response_style => :document, :response_use => :literal,
64
+ :faults => {} }
65
+ ],
66
+ [ "",
67
+ "selectByVisibleText",
68
+ [ [:in, "parameters", ["::SOAP::SOAPElement", "http:web.server.sirius.org/", "selectByVisibleText"]],
69
+ [:out, "parameters", ["::SOAP::SOAPElement", "http:web.server.sirius.org/", "selectByVisibleTextResponse"]] ],
70
+ { :request_style => :document, :request_use => :literal,
71
+ :response_style => :document, :response_use => :literal,
72
+ :faults => {} }
73
+ ],
74
+ [ "",
75
+ "getAllSelectedOptions",
76
+ [ [:in, "parameters", ["::SOAP::SOAPElement", "http:web.server.sirius.org/", "getAllSelectedOptions"]],
77
+ [:out, "parameters", ["::SOAP::SOAPElement", "http:web.server.sirius.org/", "getAllSelectedOptionsResponse"]] ],
78
+ { :request_style => :document, :request_use => :literal,
79
+ :response_style => :document, :response_use => :literal,
80
+ :faults => {} }
81
+ ],
82
+ [ "",
83
+ "getFirstSelectedOption",
84
+ [ [:in, "parameters", ["::SOAP::SOAPElement", "http:web.server.sirius.org/", "getFirstSelectedOption"]],
85
+ [:out, "parameters", ["::SOAP::SOAPElement", "http:web.server.sirius.org/", "getFirstSelectedOptionResponse"]] ],
86
+ { :request_style => :document, :request_use => :literal,
87
+ :response_style => :document, :response_use => :literal,
88
+ :faults => {} }
89
+ ],
90
+ [ "",
91
+ "deselectByVisibleText",
92
+ [ [:in, "parameters", ["::SOAP::SOAPElement", "http:web.server.sirius.org/", "deselectByVisibleText"]],
93
+ [:out, "parameters", ["::SOAP::SOAPElement", "http:web.server.sirius.org/", "deselectByVisibleTextResponse"]] ],
94
+ { :request_style => :document, :request_use => :literal,
95
+ :response_style => :document, :response_use => :literal,
96
+ :faults => {} }
97
+ ]
98
+ ]
99
+
100
+ def initialize(endpoint_url = nil) endpoint_url ||= DefaultEndpointUrl
101
+ super(endpoint_url, nil)
102
+ self.mapping_registry = WebSelectServiceMappingRegistry::EncodedRegistry
103
+ self.literal_mapping_registry = WebSelectServiceMappingRegistry::LiteralRegistry
104
+ init_methods
105
+ end
106
+ private
107
+
108
+ def init_methods
109
+ Methods.each do |definitions|
110
+ opt = definitions.last
111
+ if opt[:request_style] == :document
112
+ add_document_operation(*definitions)
113
+ else
114
+ add_rpc_operation(*definitions)
115
+ qname = definitions[0]
116
+ name = definitions[2]
117
+ if qname.name != name and qname.name.capitalize == name.capitalize
118
+ ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
119
+ __send__(name, *arg)
120
+ end
121
+ end
122
+ end
123
+ end
124
+
125
+ end
126
+ end
127
+
128
+ end