SOAP::RPC::Driver (Class)

In: soap/rpc/driver.rb
Parent: Object

Public Class methods

[Source]

# File soap/rpc/driver.rb, line 26
    def __attr_proxy(symbol, assignable = false)
      name = symbol.to_s
      module_eval "def \#{name}\n@servant.\#{name}\nend\n"
      if assignable
        module_eval "def \#{name}=(rhs)\n@servant.\#{name} = rhs\nend\n"
      end
    end

[Source]

# File soap/rpc/driver.rb, line 83
  def initialize(endpoint_url, namespace, soapaction = nil)
    @servant = Servant__.new(self, endpoint_url, namespace)
    @servant.soapaction = soapaction
    @proxy = @servant.proxy
  end

Public Instance methods

[Source]

# File soap/rpc/driver.rb, line 93
  def add_method(name, *params)
    add_method_with_soapaction_as(name, name, @servant.soapaction, *params)
  end

[Source]

# File soap/rpc/driver.rb, line 97
  def add_method_as(name, name_as, *params)
    add_method_with_soapaction_as(name, name_as, @servant.soapaction, *params)
  end

[Source]

# File soap/rpc/driver.rb, line 101
  def add_method_with_soapaction(name, soapaction, *params)
    add_method_with_soapaction_as(name, name, soapaction, *params)
  end

[Source]

# File soap/rpc/driver.rb, line 105
  def add_method_with_soapaction_as(name, name_as, soapaction, *params)
    param_def = if params.size == 1 and params[0].is_a?(Array)
        params[0]
      else
        SOAPMethod.create_param_def(params)
      end
    @servant.add_method(name_as, soapaction, name, param_def)
  end

[Source]

# File soap/rpc/driver.rb, line 122
  def call(name, *params)
    @servant.call(name, *params)
  end

[Source]

# File soap/rpc/driver.rb, line 51
  def httpproxy
    @servant.options["protocol.http.proxy"]
  end

[Source]

# File soap/rpc/driver.rb, line 55
  def httpproxy=(httpproxy)
    @servant.options["protocol.http.proxy"] = httpproxy
  end

[Source]

# File soap/rpc/driver.rb, line 89
  def inspect
    "#<#{self.class}:#{@servant.streamhandler.inspect}>"
  end

[Source]

# File soap/rpc/driver.rb, line 118
  def invoke(headers, body)
    @servant.invoke(headers, body)
  end

[Source]

# File soap/rpc/driver.rb, line 67
  def mandatorycharset
    @servant.options["protocol.mandatorycharset"]
  end

[Source]

# File soap/rpc/driver.rb, line 71
  def mandatorycharset=(mandatorycharset)
    @servant.options["protocol.mandatorycharset"] = mandatorycharset
  end

[Source]

# File soap/rpc/driver.rb, line 114
  def reset_stream
    @servant.streamhandler.reset
  end

[Source]

# File soap/rpc/driver.rb, line 59
  def wiredump_dev
    @servant.options["protocol.http.wiredump_dev"]
  end

[Source]

# File soap/rpc/driver.rb, line 63
  def wiredump_dev=(wiredump_dev)
    @servant.options["protocol.http.wiredump_dev"] = wiredump_dev
  end

[Source]

# File soap/rpc/driver.rb, line 75
  def wiredump_file_base
    @servant.options["protocol.wiredump_file_base"]
  end

[Source]

# File soap/rpc/driver.rb, line 79
  def wiredump_file_base=(wiredump_file_base)
    @servant.options["protocol.wiredump_file_base"] = wiredump_file_base
  end

[Validate]