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

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

Examples:

SOAP Version 1.1

soap_version 1


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

Parameters:

  • path (String)

    Path to wsdl, either on network or locally



6
7
8
# File 'lib/soaspec/exchange_handlers/soap_globals.rb', line 6

def wsdl(path)
  define_method('wsdl') { path }
end