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

#bindings ⇒ Object (readonly)

Returns the value of attribute bindings.



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

def bindings
  @bindings
end

#document ⇒ Object (readonly)

Returns the value of attribute document.



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

def document
  @document
end

#messages ⇒ Object (readonly)

Returns the value of attribute messages.



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

def messages
  @messages
end

#port_types ⇒ Object (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

#prefixes ⇒ Object (readonly)

Returns the value of attribute prefixes.



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

def prefixes
  @prefixes
end

#services ⇒ Object (readonly)

Returns the value of attribute services.



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

def services
  @services
end

#target_namespace ⇒ Object (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

#types ⇒ Object (readonly)

Returns the value of attribute types.



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

def types
  @types
end

#uri ⇒ Object (readonly)

Returns the value of attribute uri.



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

def uri
  @uri
end