class SoapEnumerator::Definitions

Types class contains all wsdl:definitions elements as objects.

@example:

doc         = Nokogiri::XML(open(https://url/service.php?wsdl))
definitions = SoapEnumerator::Definitions.new(doc)
definitions.attributes
definitions.types
definitions.messages
definitions.port_types
definitions.bindings
definitions.services

Attributes

attributes[R]

@!attribute attributes

bindings[R]

@!attribute bindings for wsdl Binding elements, it calls [Bindings] class

messages[R]

@!attribute messages for wsdl Message elements, it calls [Messages] class

port_types[R]

@!attribute port_types for wsdl PortType elements, it calls [PortTypes] class

services[R]

@!attribute services for wsdl Service elements, it calls [Services] class

types[R]

@!attribute types for wsdl schemas elements, it calls [Types] class

Public Class Methods

new(doc) click to toggle source
# File lib/soap_enumerator/definitions.rb, line 37
def initialize(doc)
  @attributes  = attributes_2_methods(doc.search('//wsdl:definitions')[0])
  @types       = Types.new(doc)
  @messages    = Messages.new(doc)
  @port_types  = PortTypes.new(doc)
  @bindings    = Bindings.new(doc)
  @services    = Services.new(doc)
end