Class: Savon::LocalOptions
Instance Method Summary collapse
-
#advanced_typecasting(advanced) ⇒ Object
Instruct Nori to use advanced typecasting.
-
#initialize(options = {}) ⇒ LocalOptions
constructor
A new instance of LocalOptions.
-
#message(message) ⇒ Object
The SOAP message to send.
-
#message_tag(message_tag) ⇒ Object
SOAP message tag (formerly known as SOAP input tag).
-
#response_parser(parser) ⇒ Object
Instruct Nori to use :rexml or :nokogiri to parse the response.
-
#soap_action(soap_action) ⇒ Object
Value of the SOAPAction HTTP header.
-
#xml(xml) ⇒ Object
The SOAP request XML to send.
Methods inherited from Options
Constructor Details
#initialize(options = {}) ⇒ LocalOptions
Returns a new instance of LocalOptions.
249 250 251 252 253 254 255 256 |
# File 'lib/savon/options.rb', line 249 def initialize( = {}) defaults = { :advanced_typecasting => true, :response_parser => :nokogiri } super defaults.merge() end |
Instance Method Details
#advanced_typecasting(advanced) ⇒ Object
Instruct Nori to use advanced typecasting.
280 281 282 |
# File 'lib/savon/options.rb', line 280 def advanced_typecasting(advanced) @options[:advanced_typecasting] = advanced end |
#message(message) ⇒ Object
The SOAP message to send. Expected to be a Hash or a String.
259 260 261 |
# File 'lib/savon/options.rb', line 259 def () @options[:message] = end |
#message_tag(message_tag) ⇒ Object
SOAP message tag (formerly known as SOAP input tag). If it's not set, Savon retrieves the name from the WSDL document (if available). Otherwise, Gyoku converts the operation name into an XML element.
265 266 267 |
# File 'lib/savon/options.rb', line 265 def () @options[:message_tag] = end |
#response_parser(parser) ⇒ Object
Instruct Nori to use :rexml or :nokogiri to parse the response.
285 286 287 |
# File 'lib/savon/options.rb', line 285 def response_parser(parser) @options[:response_parser] = parser end |
#soap_action(soap_action) ⇒ Object
Value of the SOAPAction HTTP header.
270 271 272 |
# File 'lib/savon/options.rb', line 270 def soap_action(soap_action) @options[:soap_action] = soap_action end |
#xml(xml) ⇒ Object
The SOAP request XML to send. Expected to be a String.
275 276 277 |
# File 'lib/savon/options.rb', line 275 def xml(xml) @options[:xml] = xml end |