module Soaspec::SoapGlobals
Singleton methods for assigning Savon globals (savonrb.com/version2/globals.html)
Public Instance Methods
basic_auth(user, password)
click to toggle source
Set Basic auth
# File lib/soaspec/exchange_handlers/soap_globals.rb, line 13 def basic_auth(user, password) define_method('basic_auth') { [user, password] } end
soap_version(number)
click to toggle source
SOAP version number. Default is version 1.2 @example SOAP Version 1.1
soap_version 1
# File lib/soaspec/exchange_handlers/soap_globals.rb, line 20 def soap_version(number) define_method('soap_version') { number } end
wsdl(path)
click to toggle source
Set SOAP WSDL. Use namespace and endpoint if no WSDL defined @param [String] path Path to wsdl, either on network or locally
# File lib/soaspec/exchange_handlers/soap_globals.rb, line 8 def wsdl(path) define_method('wsdl') { path } end