Class: SOAP::Driver

Inherits:
RPC::Driver
  • Object
show all
Includes:
Logger::Severity
Defined in:
lib/soap/compat.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(log, logid, namespace, endpoint_url, httpproxy = nil, soapaction = nil) ⇒ Driver

Returns a new instance of Driver.


108
109
110
111
112
113
114
115
# File 'lib/soap/compat.rb', line 108

def initialize(log, logid, namespace, endpoint_url, httpproxy = nil, soapaction = nil)
  super(endpoint_url, namespace, soapaction)
  @logdev = log
  @logid = logid
  @logid_prefix = "<#{ @logid }> "
  self.httpproxy = httpproxy if httpproxy
  log(INFO) { 'initialize: initializing SOAP driver...' }
end

Instance Attribute Details

#logdevObject Also known as: logDev

Returns the value of attribute logdev


100
101
102
# File 'lib/soap/compat.rb', line 100

def logdev
  @logdev
end

Instance Method Details

#addMethod(name, *params) ⇒ Object


132
133
134
# File 'lib/soap/compat.rb', line 132

def addMethod(name, *params)
  addMethodWithSOAPActionAs(name, name, nil, *params)
end

#addMethodAs(name_as, name, *params) ⇒ Object


136
137
138
# File 'lib/soap/compat.rb', line 136

def addMethodAs(name_as, name, *params)
  addMethodWithSOAPActionAs(name_as, name, nil, *params)
end

#addMethodWithSOAPAction(name, soapaction, *params) ⇒ Object


140
141
142
# File 'lib/soap/compat.rb', line 140

def addMethodWithSOAPAction(name, soapaction, *params)
  addMethodWithSOAPActionAs(name, name, soapaction, *params)
end

#addMethodWithSOAPActionAs(name_as, name, soapaction, *params) ⇒ Object


144
145
146
# File 'lib/soap/compat.rb', line 144

def addMethodWithSOAPActionAs(name_as, name, soapaction, *params)
  add_method_with_soapaction_as(name, name_as, soapaction, *params)
end

#call(name, *params) ⇒ Object


122
123
124
125
126
127
128
129
130
# File 'lib/soap/compat.rb', line 122

def call(name, *params)
  log(INFO) { "call: calling method '#{ name }'." }
  log(DEBUG) { "call: parameters '#{ params.inspect }'." }
  log(DEBUG) {
    params = Mapping.obj2soap(params, @mapping_registry).to_a
    "call: parameters '#{ params.inspect }'."
  }
  super
end

#invoke(headers, body) ⇒ Object


117
118
119
120
# File 'lib/soap/compat.rb', line 117

def invoke(headers, body)
  log(INFO) { "invoke: invoking message '#{ body.type }'." }
  super
end

#setLogDev(logdev) ⇒ Object


148
149
150
# File 'lib/soap/compat.rb', line 148

def setLogDev(logdev)
  self.logdev = logdev
end