Class: SOAP::WSDL::Bindings

Inherits:
Hash
  • Object
show all
Defined in:
lib/soap/lc/wsdl/binding.rb

Instance Method Summary collapse

Methods inherited from Hash

#keys_to_sym!, #kvTable

Instance Method Details

#getBindingForOperationName(binding, name) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/soap/lc/wsdl/binding.rb', line 4

def getBindingForOperationName( binding, name )
  r = []
  if binding.nil?        
    self.each do |binding_name, binding|
      r << binding if binding.operations.keys.include?(name)
    end
  else
    r << self[binding] if self[binding].operations.keys.include?(name)
  end
  return r
end

#getOperations(binding = nil) ⇒ Object



16
17
18
19
20
21
22
23
24
25
26
# File 'lib/soap/lc/wsdl/binding.rb', line 16

def getOperations( binding = nil )
  r = []
  if binding.nil?        
    self.each do |binding_name, binding|
      r = r + binding.operations.keys
    end
  else
    r = r + self[binding].operations.keys
  end
  return r
end