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, SOAPProxy, TypeMap, VERSION, ValueArray, ValueArrayName
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.
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
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
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
|
#filterchain ⇒ Object
157
158
159
|
# File 'lib/soap/rpc/cgistub.rb', line 157
def filterchain
@router.filterchain
end
|
#generate_explicit_type ⇒ Object
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_registry ⇒ Object
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_registry ⇒ Object
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
|
117
118
119
|
# File 'lib/soap/rpc/cgistub.rb', line 117
def on_init
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
|