Class: WSDL::Reader::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/wsdl-reader/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri) ⇒ Parser

Returns a new instance of Parser.



21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/wsdl-reader/parser.rb', line 21

def initialize(uri)
  @uri = uri
  @types = SOAP::XSD.new()
  @messages = WSDL::Reader::Messages.new
  @port_types = WSDL::Reader::PortTypes.new
  @bindings = WSDL::Reader::Bindings.new
  @services = SOAP::WSDL::Services.new

  @prefixes = Hash.new
  @target_namespace = ""

  @document = REXML::Document.new(get_wsdl_source)

  process_attributes @document.root.attributes
  process_content @document.root.children
end

Instance Attribute Details

#bindingsObject (readonly)

Returns the value of attribute bindings.



14
15
16
# File 'lib/wsdl-reader/parser.rb', line 14

def bindings
  @bindings
end

#documentObject (readonly)

Returns the value of attribute document.



16
17
18
# File 'lib/wsdl-reader/parser.rb', line 16

def document
  @document
end

#messagesObject (readonly)

Returns the value of attribute messages.



14
15
16
# File 'lib/wsdl-reader/parser.rb', line 14

def messages
  @messages
end

#port_typesObject (readonly)

Returns the value of attribute port_types.



14
15
16
# File 'lib/wsdl-reader/parser.rb', line 14

def port_types
  @port_types
end

#prefixesObject (readonly)

Returns the value of attribute prefixes.



15
16
17
# File 'lib/wsdl-reader/parser.rb', line 15

def prefixes
  @prefixes
end

#servicesObject (readonly)

Returns the value of attribute services.



14
15
16
# File 'lib/wsdl-reader/parser.rb', line 14

def services
  @services
end

#target_namespaceObject (readonly)

Returns the value of attribute target_namespace.



15
16
17
# File 'lib/wsdl-reader/parser.rb', line 15

def target_namespace
  @target_namespace
end

#typesObject (readonly)

Returns the value of attribute types.



14
15
16
# File 'lib/wsdl-reader/parser.rb', line 14

def types
  @types
end

#uriObject (readonly)

Returns the value of attribute uri.



16
17
18
# File 'lib/wsdl-reader/parser.rb', line 16

def uri
  @uri
end