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, SOAPNamespaceTag, SOAPProxy, TypeMap, ValueArray, ValueArrayName, Version, XSDNamespaceTag, XSINamespaceTag

Instance Method Summary collapse

Constructor Details

#initialize(appname, default_namespace) ⇒ CGIStub


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

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


192
193
194
# File 'lib/soap/rpc/cgistub.rb', line 192

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


154
155
156
# File 'lib/soap/rpc/cgistub.rb', line 154

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

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

method entry interface


165
166
167
# File 'lib/soap/rpc/cgistub.rb', line 165

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


170
171
172
# File 'lib/soap/rpc/cgistub.rb', line 170

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


175
176
177
# File 'lib/soap/rpc/cgistub.rb', line 175

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


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

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


188
189
190
# File 'lib/soap/rpc/cgistub.rb', line 188

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


149
150
151
# File 'lib/soap/rpc/cgistub.rb', line 149

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

#filterchainObject


159
160
161
# File 'lib/soap/rpc/cgistub.rb', line 159

def filterchain
  @router.filterchain
end

#generate_explicit_typeObject


139
140
141
# File 'lib/soap/rpc/cgistub.rb', line 139

def generate_explicit_type
  @router.generate_explicit_type
end

#generate_explicit_type=(generate_explicit_type) ⇒ Object


143
144
145
# File 'lib/soap/rpc/cgistub.rb', line 143

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

#literal_mapping_registryObject


131
132
133
# File 'lib/soap/rpc/cgistub.rb', line 131

def literal_mapping_registry
  @router.literal_mapping_registry
end

#literal_mapping_registry=(literal_mapping_registry) ⇒ Object


135
136
137
# File 'lib/soap/rpc/cgistub.rb', line 135

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

#mapping_registryObject


123
124
125
# File 'lib/soap/rpc/cgistub.rb', line 123

def mapping_registry
  @router.mapping_registry
end

#mapping_registry=(mapping_registry) ⇒ Object


127
128
129
# File 'lib/soap/rpc/cgistub.rb', line 127

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

#on_initObject


119
120
121
# File 'lib/soap/rpc/cgistub.rb', line 119

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

end

#set_fcgi_request(request) ⇒ Object


196
197
198
# File 'lib/soap/rpc/cgistub.rb', line 196

def set_fcgi_request(request)
  @fcgi = request
end