Class: SOAP::RPC::CGIStub

Inherits:
Logger::Application
  • Object
show all
Includes:
SOAP, WEBrick
Defined in:
lib/soap/rpc/cgistub.rb

Overview

SYNOPSIS

CGIStub.new

DESCRIPTION

To be written...

Defined Under Namespace

Classes: SOAPFCGIRequest, SOAPRequest, SOAPStdinRequest

Constant Summary

Constants included from SOAP

AttrActor, AttrActorName, AttrArrayType, AttrArrayTypeName, AttrEncodingStyle, AttrEncodingStyleName, AttrHref, AttrHrefName, AttrId, AttrIdName, AttrMustUnderstand, AttrMustUnderstandName, AttrOffset, AttrOffsetName, AttrPosition, AttrPositionName, AttrRoot, AttrRootName, Base64Literal, EleBody, EleBodyName, EleEnvelope, EleEnvelopeName, EleFault, EleFaultActor, EleFaultActorName, EleFaultCode, EleFaultCodeName, EleFaultDetail, EleFaultDetailName, EleFaultName, EleFaultString, EleFaultStringName, EleHeader, EleHeaderName, EncodingNamespace, EnvelopeNamespace, LiteralNamespace, MediaType, NextActor, PropertyName, SOAPProxy, TypeMap, VERSION, ValueArray, ValueArrayName

Instance Method Summary collapse

Constructor Details

#initialize(appname, default_namespace) ⇒ CGIStub

Returns a new instance of CGIStub.



106
107
108
109
110
111
112
113
114
115
# File 'lib/soap/rpc/cgistub.rb', line 106

def initialize(appname, default_namespace)
  super(appname)
  set_log(STDERR)
  self.level = ERROR
  @default_namespace = default_namespace
  @remote_host = ENV['REMOTE_HOST'] || ENV['REMOTE_ADDR'] || 'unknown'
  @router = ::SOAP::RPC::Router.new(self.class.name)
  @soaplet = ::SOAP::RPC::SOAPlet.new(@router)
  on_init
end

Instance Method Details

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



190
191
192
# File 'lib/soap/rpc/cgistub.rb', line 190

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



152
153
154
# File 'lib/soap/rpc/cgistub.rb', line 152

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

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

method entry interface



163
164
165
# File 'lib/soap/rpc/cgistub.rb', line 163

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



168
169
170
# File 'lib/soap/rpc/cgistub.rb', line 168

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



173
174
175
# File 'lib/soap/rpc/cgistub.rb', line 173

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



178
179
180
181
182
183
# File 'lib/soap/rpc/cgistub.rb', line 178

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



186
187
188
# File 'lib/soap/rpc/cgistub.rb', line 186

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 = @default_namespace) ⇒ Object Also known as: add_servant

servant entry interface



147
148
149
# File 'lib/soap/rpc/cgistub.rb', line 147

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

#filterchainObject



157
158
159
# File 'lib/soap/rpc/cgistub.rb', line 157

def filterchain
  @router.filterchain
end

#generate_explicit_typeObject



137
138
139
# File 'lib/soap/rpc/cgistub.rb', line 137

def generate_explicit_type
  @router.generate_explicit_type
end

#generate_explicit_type=(generate_explicit_type) ⇒ Object



141
142
143
# File 'lib/soap/rpc/cgistub.rb', line 141

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

#literal_mapping_registryObject



129
130
131
# File 'lib/soap/rpc/cgistub.rb', line 129

def literal_mapping_registry
  @router.literal_mapping_registry
end

#literal_mapping_registry=(literal_mapping_registry) ⇒ Object



133
134
135
# File 'lib/soap/rpc/cgistub.rb', line 133

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

#mapping_registryObject



121
122
123
# File 'lib/soap/rpc/cgistub.rb', line 121

def mapping_registry
  @router.mapping_registry
end

#mapping_registry=(mapping_registry) ⇒ Object



125
126
127
# File 'lib/soap/rpc/cgistub.rb', line 125

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

#on_initObject



117
118
119
# File 'lib/soap/rpc/cgistub.rb', line 117

def on_init
  # do extra initialization in a derived class if needed.
end

#set_fcgi_request(request) ⇒ Object



194
195
196
# File 'lib/soap/rpc/cgistub.rb', line 194

def set_fcgi_request(request)
  @fcgi = request
end