Module: Handsoap
- Defined in:
- lib/handsoap/service.rb,
lib/handsoap/http.rb,
lib/handsoap/parser.rb,
lib/handsoap/service.rb,
lib/handsoap/compiler.rb,
lib/handsoap/xml_mason.rb,
lib/handsoap/xml_query_front.rb
Overview
Legacy/BC code here. This shouldn’t be used in new applications.
Defined Under Namespace
Modules: Http, Parser, XmlMason, XmlQueryFront
Classes: CodeWriter, Compiler, Fault, HttpError, Service, SoapResponse
Class Method Summary
collapse
Class Method Details
.http_driver ⇒ Object
9
10
11
|
# File 'lib/handsoap/service.rb', line 9
def self.http_driver
@http_driver || (self.http_driver = :curb)
end
|
.http_driver=(driver) ⇒ Object
13
14
15
16
17
|
# File 'lib/handsoap/service.rb', line 13
def self.http_driver=(driver)
@http_driver = driver
Handsoap::Http.drivers[driver].load!
return driver
end
|
289
290
291
292
293
294
295
296
297
298
299
300
|
# File 'lib/handsoap/service.rb', line 289
def self.pretty_format_envelope(xml_string)
if /^<.*:Envelope/.match(xml_string)
begin
doc = Handsoap::XmlQueryFront.parse_string(xml_string, Handsoap.xml_query_driver)
rescue
return xml_string
end
return doc.to_xml
end
return xml_string
end
|
.xml_query_driver ⇒ Object
19
20
21
|
# File 'lib/handsoap/service.rb', line 19
def self.xml_query_driver
@xml_query_driver || (self.xml_query_driver = :nokogiri)
end
|
.xml_query_driver=(driver) ⇒ Object