Class: SOAP::RPC::CGIStub
- Inherits:
-
Logger::Application
- Object
- Logger::Application
- SOAP::RPC::CGIStub
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, VERSION, ValueArray, ValueArrayName, XSDNamespaceTag, XSINamespaceTag
Instance Method Summary
collapse
-
#add_document_operation(receiver, soapaction, name, param_def, opt = {}) ⇒ Object
-
#add_headerhandler(obj) ⇒ Object
(also: #add_rpc_headerhandler)
-
#add_rpc_method(obj, name, *param) ⇒ Object
(also: #add_method)
-
#add_rpc_method_as(obj, name, name_as, *param) ⇒ Object
(also: #add_method_as)
-
#add_rpc_method_with_namespace(namespace, obj, name, *param) ⇒ Object
(also: #add_method_with_namespace)
-
#add_rpc_method_with_namespace_as(namespace, obj, name, name_as, *param) ⇒ Object
(also: #add_method_with_namespace_as)
-
#add_rpc_operation(receiver, qname, soapaction, name, param_def, opt = {}) ⇒ Object
-
#add_rpc_servant(obj, namespace = @default_namespace) ⇒ Object
(also: #add_servant)
-
#filterchain ⇒ Object
-
#generate_explicit_type ⇒ Object
-
#generate_explicit_type=(generate_explicit_type) ⇒ Object
-
#initialize(appname, default_namespace) ⇒ CGIStub
constructor
A new instance of CGIStub.
-
#literal_mapping_registry ⇒ Object
-
#literal_mapping_registry=(literal_mapping_registry) ⇒ Object
-
#mapping_registry ⇒ Object
-
#mapping_registry=(mapping_registry) ⇒ Object
-
#on_init ⇒ Object
-
#set_fcgi_request(request) ⇒ Object
Constructor Details
#initialize(appname, default_namespace) ⇒ CGIStub
Returns a new instance of CGIStub.
107
108
109
110
111
112
113
114
115
116
|
# File 'lib/soap/rpc/cgistub.rb', line 107
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
191
192
193
|
# File 'lib/soap/rpc/cgistub.rb', line 191
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
153
154
155
|
# File 'lib/soap/rpc/cgistub.rb', line 153
def add_headerhandler(obj)
@router.add_headerhandler(obj)
end
|
#add_rpc_method(obj, name, *param) ⇒ Object
Also known as:
add_method
164
165
166
|
# File 'lib/soap/rpc/cgistub.rb', line 164
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
169
170
171
|
# File 'lib/soap/rpc/cgistub.rb', line 169
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
174
175
176
|
# File 'lib/soap/rpc/cgistub.rb', line 174
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
179
180
181
182
183
184
|
# File 'lib/soap/rpc/cgistub.rb', line 179
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
187
188
189
|
# File 'lib/soap/rpc/cgistub.rb', line 187
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
148
149
150
|
# File 'lib/soap/rpc/cgistub.rb', line 148
def add_rpc_servant(obj, namespace = @default_namespace)
@router.add_rpc_servant(obj, namespace)
end
|
#filterchain ⇒ Object
158
159
160
|
# File 'lib/soap/rpc/cgistub.rb', line 158
def filterchain
@router.filterchain
end
|
#generate_explicit_type ⇒ Object
138
139
140
|
# File 'lib/soap/rpc/cgistub.rb', line 138
def generate_explicit_type
@router.generate_explicit_type
end
|
#generate_explicit_type=(generate_explicit_type) ⇒ Object
142
143
144
|
# File 'lib/soap/rpc/cgistub.rb', line 142
def generate_explicit_type=(generate_explicit_type)
@router.generate_explicit_type = generate_explicit_type
end
|
#literal_mapping_registry ⇒ Object
130
131
132
|
# File 'lib/soap/rpc/cgistub.rb', line 130
def literal_mapping_registry
@router.literal_mapping_registry
end
|
#literal_mapping_registry=(literal_mapping_registry) ⇒ Object
134
135
136
|
# File 'lib/soap/rpc/cgistub.rb', line 134
def literal_mapping_registry=(literal_mapping_registry)
@router.literal_mapping_registry = literal_mapping_registry
end
|
#mapping_registry ⇒ Object
122
123
124
|
# File 'lib/soap/rpc/cgistub.rb', line 122
def mapping_registry
@router.mapping_registry
end
|
#mapping_registry=(mapping_registry) ⇒ Object
126
127
128
|
# File 'lib/soap/rpc/cgistub.rb', line 126
def mapping_registry=(mapping_registry)
@router.mapping_registry = mapping_registry
end
|
118
119
120
|
# File 'lib/soap/rpc/cgistub.rb', line 118
def on_init
end
|
#set_fcgi_request(request) ⇒ Object
195
196
197
|
# File 'lib/soap/rpc/cgistub.rb', line 195
def set_fcgi_request(request)
@fcgi = request
end
|