Files

Class Index [+]

Quicksearch

SOAP::RPC::SOAPMethodRequest

Attributes

soapaction[RW]

Public Class Methods

create_request(qname, *params) click to toggle source
     # File lib/soap/rpc/element.rb, line 271
271:   def SOAPMethodRequest.create_request(qname, *params)
272:     param_def = []
273:     param_value = []
274:     i = 0
275:     params.each do |param|
276:       param_name = "p#{i}"
277:       i += 1
278:       param_def << [IN, param_name, nil]
279:       param_value << [param_name, param]
280:     end
281:     param_def << [RETVAL, 'return', nil]
282:     o = new(qname, param_def)
283:     o.set_param(param_value)
284:     o
285:   end
new(qname, param_def = nil, soapaction = nil) click to toggle source
     # File lib/soap/rpc/element.rb, line 287
287:   def initialize(qname, param_def = nil, soapaction = nil)
288:     super(qname, param_def)
289:     @soapaction = soapaction
290:   end

Public Instance Methods

create_method_response(response_name = nil) click to toggle source
     # File lib/soap/rpc/element.rb, line 307
307:   def create_method_response(response_name = nil)
308:     response_name ||=
309:       XSD::QName.new(@elename.namespace, @elename.name + 'Response')
310:     SOAPMethodResponse.new(response_name, @param_def)
311:   end
dup() click to toggle source
     # File lib/soap/rpc/element.rb, line 301
301:   def dup
302:     req = self.class.new(@elename.dup, @param_def, @soapaction)
303:     req.encodingstyle = @encodingstyle
304:     req
305:   end
each() click to toggle source
     # File lib/soap/rpc/element.rb, line 292
292:   def each
293:     input_params.each do |name|
294:       unless @inparam[name]
295:         raise ParameterError.new("parameter: #{name} was not given")
296:       end
297:       yield(name, @inparam[name])
298:     end
299:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.