Module: Soaspec::SoapGlobals
- Included in:
- SoapHandler
- Defined in:
- lib/soaspec/exchange_handlers/soap_globals.rb
Overview
Singleton methods for assigning Savon globals (savonrb.com/version2/globals.html)
Instance Method Summary collapse
-
#basic_auth(user, password) ⇒ Object
Set Basic auth.
-
#soap_version(number) ⇒ Object
SOAP version number.
-
#wsdl(path) ⇒ Object
Set SOAP WSDL.
Instance Method Details
#basic_auth(user, password) ⇒ Object
Set Basic auth
11 12 13 |
# File 'lib/soaspec/exchange_handlers/soap_globals.rb', line 11 def basic_auth(user, password) define_method('basic_auth') { [user, password] } end |
#soap_version(number) ⇒ Object
SOAP version number. Default is version 1.2
18 19 20 |
# File 'lib/soaspec/exchange_handlers/soap_globals.rb', line 18 def soap_version(number) define_method('soap_version') { number } end |
#wsdl(path) ⇒ Object
Set SOAP WSDL. Use namespace and endpoint if no WSDL defined
6 7 8 |
# File 'lib/soaspec/exchange_handlers/soap_globals.rb', line 6 def wsdl(path) define_method('wsdl') { path } end |