class SoapEnumerator::Bindings::Binding

Binding class is a class for wsdl:binding elements

@example:

bindings  = soap_enum.bindings.list
binding   = bindings[0]
binding.attributes
binding.soap_binding
operation = binding.operations[0]
operation.attributes
operation.soap_action
operation.style
operation.name
operation.input
operation.output
operation.documentation

Attributes

attributes[R]

@!attribute attributes

operations[R]

@!attribute operations

soap_binding[R]

@!attribute soap_binding

Public Class Methods

new(binding_doc) click to toggle source
# File lib/soap_enumerator/bindings/binding.rb, line 31
def initialize(binding_doc)
  @attributes   = attributes_2_methods(binding_doc)
  @soap_binding = get_soap_binding(binding_doc)
  @operations   = get_operations(binding_doc)
end

Private Instance Methods

get_operations(binding_doc) click to toggle source
# File lib/soap_enumerator/bindings/binding.rb, line 45
def get_operations(binding_doc)
  binding_doc.search('//wsdl:binding/wsdl:operation').map do |ops|
    Bindings::Binding::Operation.new(ops)
  end
end
get_soap_binding(binding_doc) click to toggle source
# File lib/soap_enumerator/bindings/binding.rb, line 39
def get_soap_binding(binding_doc)
  binding_doc.search('//soap:binding').map do |sb|
    attributes_2_hashes(sb.attributes)
  end.flatten
end