Module: Soap4r::Middleware::ClassMethods

Defined in:
lib/soap4r-middleware.rb

Instance Method Summary collapse

Instance Method Details

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



172
173
174
# File 'lib/soap4r-middleware.rb', line 172

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



134
135
136
# File 'lib/soap4r-middleware.rb', line 134

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

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

method entry interface



145
146
147
# File 'lib/soap4r-middleware.rb', line 145

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



150
151
152
# File 'lib/soap4r-middleware.rb', line 150

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



155
156
157
# File 'lib/soap4r-middleware.rb', line 155

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



160
161
162
163
164
165
# File 'lib/soap4r-middleware.rb', line 160

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



168
169
170
# File 'lib/soap4r-middleware.rb', line 168

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



129
130
131
# File 'lib/soap4r-middleware.rb', line 129

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

#endpointObject



97
98
99
# File 'lib/soap4r-middleware.rb', line 97

def endpoint
  @endpoint
end

#endpoint=(regex) ⇒ Object



93
94
95
# File 'lib/soap4r-middleware.rb', line 93

def endpoint=(regex)
  @endpoint = regex
end

#filterchainObject



139
140
141
# File 'lib/soap4r-middleware.rb', line 139

def filterchain
  router.filterchain
end

#generate_explicit_typeObject



119
120
121
# File 'lib/soap4r-middleware.rb', line 119

def generate_explicit_type
  router.generate_explicit_type
end

#generate_explicit_type=(generate_explicit_type) ⇒ Object



123
124
125
# File 'lib/soap4r-middleware.rb', line 123

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

#literal_mapping_registryObject



111
112
113
# File 'lib/soap4r-middleware.rb', line 111

def literal_mapping_registry
  router.literal_mapping_registry
end

#literal_mapping_registry=(literal_mapping_registry) ⇒ Object



115
116
117
# File 'lib/soap4r-middleware.rb', line 115

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

#mapping_registryObject

SOAP interface



103
104
105
# File 'lib/soap4r-middleware.rb', line 103

def mapping_registry
  router.mapping_registry
end

#mapping_registry=(mapping_registry) ⇒ Object



107
108
109
# File 'lib/soap4r-middleware.rb', line 107

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

#routerObject



89
90
91
# File 'lib/soap4r-middleware.rb', line 89

def router
  @router
end

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

Yields:

  • (_self)

Yield Parameters:



84
85
86
87
# File 'lib/soap4r-middleware.rb', line 84

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