Class: SOAP::HTTPStreamHandler
Constant Summary
collapse
- MAX_RETRY_COUNT =
10
Constants included
from SOAP
AttrActor, AttrActorName, AttrArrayType, AttrArrayTypeName, AttrEncodingStyle, AttrEncodingStyleName, AttrMustUnderstand, AttrMustUnderstandName, AttrOffset, AttrOffsetName, AttrPosition, AttrPositionName, AttrRoot, AttrRootName, Base64Literal, Charset, EleBody, EleBodyName, EleEnvelope, EleEnvelopeName, EleFault, EleFaultActor, EleFaultActorName, EleFaultCode, EleFaultCodeName, EleFaultDetail, EleFaultDetailName, EleFaultName, EleFaultString, EleFaultStringName, EleHeader, EleHeaderName, EncodingNamespace, EnvelopeNamespace, LiteralNamespace, MediaType, NS, NextActor, PropertyName, RPCRouter, RPCServerException, RPCUtils, SOAPNamespaceTag, SOAPProxy, TypeMap, VERSION, ValueArray, ValueArrayName, XSDNamespaceTag, XSINamespaceTag
StreamHandler::RUBY_VERSION_STRING
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
create_media_type, parse_media_type, #set_wiredump_file_base
Constructor Details
113
114
115
116
117
118
119
120
121
122
123
|
# File 'lib/soap/streamHandler.rb', line 113
def initialize(options)
super()
@client = Client.new(nil, "SOAP4R/#{ Version }")
@wiredump_file_base = nil
@charset = @wiredump_dev = nil
@options = options
set_options
@client.debug_dev = @wiredump_dev
@cookie_store = nil
@accept_encoding_gzip = false
end
|
Instance Attribute Details
Returns the value of attribute client.
104
105
106
|
# File 'lib/soap/streamHandler.rb', line 104
def client
@client
end
|
#wiredump_file_base ⇒ Object
Returns the value of attribute wiredump_file_base.
105
106
107
|
# File 'lib/soap/streamHandler.rb', line 105
def wiredump_file_base
@wiredump_file_base
end
|
Class Method Details
.create(options) ⇒ Object
109
110
111
|
# File 'lib/soap/streamHandler.rb', line 109
def self.create(options)
new(options)
end
|
Instance Method Details
#accept_encoding_gzip=(allow) ⇒ Object
129
130
131
|
# File 'lib/soap/streamHandler.rb', line 129
def accept_encoding_gzip=(allow)
@accept_encoding_gzip = allow
end
|
133
134
135
|
# File 'lib/soap/streamHandler.rb', line 133
def inspect
"#<#{self.class}>"
end
|
#reset(endpoint_url = nil) ⇒ Object
144
145
146
147
148
149
150
151
|
# File 'lib/soap/streamHandler.rb', line 144
def reset(endpoint_url = nil)
if endpoint_url.nil?
@client.reset_all
else
@client.reset(endpoint_url)
end
@client.save_cookie_store if @cookie_store
end
|
#send(endpoint_url, conn_data, soapaction = nil, charset = @charset) ⇒ Object
137
138
139
140
141
142
|
# File 'lib/soap/streamHandler.rb', line 137
def send(endpoint_url, conn_data, soapaction = nil, charset = @charset)
conn_data.soapaction ||= soapaction
conn_data = send_post(endpoint_url, conn_data, charset)
@client.save_cookie_store if @cookie_store
conn_data
end
|
#test_loopback_response ⇒ Object
125
126
127
|
# File 'lib/soap/streamHandler.rb', line 125
def test_loopback_response
@client.test_loopback_response
end
|