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.



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/wsdl-reader/parser.rb', line 17

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.



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

def bindings
  @bindings
end

#documentObject (readonly)

Returns the value of attribute document.



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

def document
  @document
end

#messagesObject (readonly)

Returns the value of attribute messages.



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

def messages
  @messages
end

#port_typesObject (readonly)

Returns the value of attribute port_types.



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

def port_types
  @port_types
end

#prefixesObject (readonly)

Returns the value of attribute prefixes.



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

def prefixes
  @prefixes
end

#servicesObject (readonly)

Returns the value of attribute services.



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

def services
  @services
end

#target_namespaceObject (readonly)

Returns the value of attribute target_namespace.



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

def target_namespace
  @target_namespace
end

#typesObject (readonly)

Returns the value of attribute types.



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

def types
  @types
end

#uriObject (readonly)

Returns the value of attribute uri.



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

def uri
  @uri
end