Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

In Files

  • soap/rpc/element.rb

Class/Module Index [+]

Quicksearch

SOAP::RPC::SOAPMethodRequest

Attributes

soapaction[RW]

Public Class Methods

create_request(qname, *params) click to toggle source
 
               # File soap/rpc/element.rb, line 221
def SOAPMethodRequest.create_request(qname, *params)
  param_def = []
  param_value = []
  i = 0
  params.each do |param|
    param_name = "p#{i}"
    i += 1
    param_def << [IN, param_name, nil]
    param_value << [param_name, param]
  end
  param_def << [RETVAL, 'return', nil]
  o = new(qname, param_def)
  o.set_param(param_value)
  o
end
            
new(qname, param_def = nil, soapaction = nil) click to toggle source
 
               # File soap/rpc/element.rb, line 237
def initialize(qname, param_def = nil, soapaction = nil)
  check_elename(qname)
  super(qname, param_def)
  @soapaction = soapaction
end
            

Public Instance Methods

create_method_response(response_name = nil) click to toggle source
 
               # File soap/rpc/element.rb, line 258
def create_method_response(response_name = nil)
  response_name ||=
    XSD::QName.new(@elename.namespace, @elename.name + 'Response')
  SOAPMethodResponse.new(response_name, @param_def)
end
            
dup() click to toggle source
 
               # File soap/rpc/element.rb, line 252
def dup
  req = self.class.new(@elename.dup, @param_def, @soapaction)
  req.encodingstyle = @encodingstyle
  req
end
            
each() click to toggle source
 
               # File soap/rpc/element.rb, line 243
def each
  input_params.each do |name|
    unless @inparam[name]
      raise ParameterError.new("parameter: #{name} was not given")
    end
    yield(name, @inparam[name])
  end
end