# File lib/soap/rpc/driver.rb, line 81 def initialize(endpoint_url, namespace = nil, soapaction = nil) @namespace = namespace @soapaction = soapaction @options = setup_options @wiredump_file_base = nil @proxy = Proxy.new(endpoint_url, @soapaction, @options) end
# File lib/soap/rpc/driver.rb, line 120 def add_document_method(name, soapaction, req_qname, res_qname) param_def = SOAPMethod.create_doc_param_def(req_qname, res_qname) @proxy.add_document_method(soapaction, name, param_def) add_document_method_interface(name, param_def) end
# File lib/soap/rpc/driver.rb, line 131 def add_document_operation(soapaction, name, param_def, opt = {}) @proxy.add_document_operation(soapaction, name, param_def, opt) add_document_method_interface(name, param_def) end
add_method is for shortcut of typical rpc/encoded method definition.
# File lib/soap/rpc/driver.rb, line 95 def add_rpc_method(name, *params) add_rpc_method_with_soapaction_as(name, name, @soapaction, *params) end
# File lib/soap/rpc/driver.rb, line 99 def add_rpc_method_as(name, name_as, *params) add_rpc_method_with_soapaction_as(name, name_as, @soapaction, *params) end
# File lib/soap/rpc/driver.rb, line 103 def add_rpc_method_with_soapaction(name, soapaction, *params) add_rpc_method_with_soapaction_as(name, name, soapaction, *params) end
# File lib/soap/rpc/driver.rb, line 107 def add_rpc_method_with_soapaction_as(name, name_as, soapaction, *params) param_def = SOAPMethod.create_rpc_param_def(params) qname = XSD::QName.new(@namespace, name_as) @proxy.add_rpc_method(qname, soapaction, name, param_def) add_rpc_method_interface(name, param_def) end
# File lib/soap/rpc/driver.rb, line 126 def add_rpc_operation(qname, soapaction, name, param_def, opt = {}) @proxy.add_rpc_operation(qname, soapaction, name, param_def, opt) add_rpc_method_interface(name, param_def) end
# File lib/soap/rpc/driver.rb, line 149 def call(name, *params) set_wiredump_file_base(name) @proxy.call(name, *params) end
# File lib/soap/rpc/driver.rb, line 49 def httpproxy options["protocol.http.proxy"] end
# File lib/soap/rpc/driver.rb, line 53 def httpproxy=(httpproxy) options["protocol.http.proxy"] = httpproxy end
# File lib/soap/rpc/driver.rb, line 45 def inspect "#<#{self.class}:#{@proxy.inspect}>" end
# File lib/soap/rpc/driver.rb, line 136 def invoke(headers, body) if headers and !headers.is_a?(SOAPHeader) headers = create_header(headers) end set_wiredump_file_base(body.elename.name) env = @proxy.invoke(headers, body) if env.nil? return nil, nil else return env.header, env.body end end
# File lib/soap/rpc/driver.rb, line 89 def loadproperty(propertyname) unless options.loadproperty(propertyname) raise LoadError.new("No such property to load -- #{propertyname}") end end
# File lib/soap/rpc/driver.rb, line 65 def mandatorycharset options["protocol.mandatorycharset"] end
# File lib/soap/rpc/driver.rb, line 69 def mandatorycharset=(mandatorycharset) options["protocol.mandatorycharset"] = mandatorycharset end
# File lib/soap/rpc/driver.rb, line 57 def wiredump_dev options["protocol.http.wiredump_dev"] end
# File lib/soap/rpc/driver.rb, line 61 def wiredump_dev=(wiredump_dev) options["protocol.http.wiredump_dev"] = wiredump_dev end
Generated with the Darkfish Rdoc Generator 2.