Module: Soybean::Engine::ClassMethods

Included in:
Soybean::Engine
Defined in:
lib/soybean/engine.rb

Instance Method Summary collapse

Instance Method Details

#add_document_operation(receiver, soapaction, name, param_def, opt = {}) ⇒ Object



110
111
112
# File 'lib/soybean/engine.rb', line 110

def add_document_operation(receiver, soapaction, name, param_def, opt = {})
  router.add_document_operation(receiver, soapaction, name, param_def, opt)
end

#add_headerhandler(obj) ⇒ Object Also known as: add_rpc_headerhandler



67
68
69
# File 'lib/soybean/engine.rb', line 67

def add_headerhandler(obj)
  router.add_headerhandler(obj)
end

#add_rpc_method(obj, name, *param) ⇒ Object Also known as: add_method

method entry interface



79
80
81
# File 'lib/soybean/engine.rb', line 79

def add_rpc_method(obj, name, *param)
  add_rpc_method_with_namespace_as(default_namespace, obj, name, name, *param)
end

#add_rpc_method_as(obj, name, name_as, *param) ⇒ Object Also known as: add_method_as



85
86
87
# File 'lib/soybean/engine.rb', line 85

def add_rpc_method_as(obj, name, name_as, *param)
  add_rpc_method_with_namespace_as(default_namespace, obj, name, name_as, *param)
end

#add_rpc_method_with_namespace(namespace, obj, name, *param) ⇒ Object Also known as: add_method_with_namespace



91
92
93
# File 'lib/soybean/engine.rb', line 91

def add_rpc_method_with_namespace(namespace, obj, name, *param)
  add_rpc_method_with_namespace_as(namespace, obj, name, name, *param)
end

#add_rpc_method_with_namespace_as(namespace, obj, name, name_as, *param) ⇒ Object Also known as: add_method_with_namespace_as



97
98
99
100
101
102
# File 'lib/soybean/engine.rb', line 97

def add_rpc_method_with_namespace_as(namespace, obj, name, name_as, *param)
  qname = XSD::QName.new(namespace, name_as)
  soapaction = nil
  param_def = SOAPMethod.derive_rpc_param_def(obj, name, *param)
  router.add_rpc_operation(obj, qname, soapaction, name, param_def)
end

#add_rpc_operation(receiver, qname, soapaction, name, param_def, opt = {}) ⇒ Object



106
107
108
# File 'lib/soybean/engine.rb', line 106

def add_rpc_operation(receiver, qname, soapaction, name, param_def, opt = {})
  router.add_rpc_operation(receiver, qname, soapaction, name, param_def, opt)
end

#add_rpc_servant(obj, namespace = self.default_namespace) ⇒ Object Also known as: add_servant

servant entry interface



61
62
63
# File 'lib/soybean/engine.rb', line 61

def add_rpc_servant(obj, namespace = self.default_namespace)
  router.add_rpc_servant(obj, namespace)
end

#endpointObject



29
30
31
# File 'lib/soybean/engine.rb', line 29

def endpoint
  @endpoint
end

#endpoint=(regex) ⇒ Object



25
26
27
# File 'lib/soybean/engine.rb', line 25

def endpoint=(regex)
  @endpoint = regex
end

#filterchainObject



73
74
75
# File 'lib/soybean/engine.rb', line 73

def filterchain
  router.filterchain
end

#generate_explicit_typeObject



51
52
53
# File 'lib/soybean/engine.rb', line 51

def generate_explicit_type
  router.generate_explicit_type
end

#generate_explicit_type=(generate_explicit_type) ⇒ Object



55
56
57
# File 'lib/soybean/engine.rb', line 55

def generate_explicit_type=(generate_explicit_type)
  router.generate_explicit_type = generate_explicit_type
end

#literal_mapping_registryObject



43
44
45
# File 'lib/soybean/engine.rb', line 43

def literal_mapping_registry
  router.literal_mapping_registry
end

#literal_mapping_registry=(literal_mapping_registry) ⇒ Object



47
48
49
# File 'lib/soybean/engine.rb', line 47

def literal_mapping_registry=(literal_mapping_registry)
  router.literal_mapping_registry = literal_mapping_registry
end

#mapping_registryObject

SOAP interface



35
36
37
# File 'lib/soybean/engine.rb', line 35

def mapping_registry
  router.mapping_registry
end

#mapping_registry=(mapping_registry) ⇒ Object



39
40
41
# File 'lib/soybean/engine.rb', line 39

def mapping_registry=(mapping_registry)
  router.mapping_registry = mapping_registry
end

#routerObject



21
22
23
# File 'lib/soybean/engine.rb', line 21

def router
  @router
end

#setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



16
17
18
19
# File 'lib/soybean/engine.rb', line 16

def setup
  @router = ::SOAP::RPC::Router.new(self.class.name)
  yield self
end