Class WSDL::Binding
In: lib/wsdl/binding.rb
Parent: Info

Methods

Attributes

name  [R] 
operations  [R] 
soapbinding  [R] 
type  [R] 

Public Class methods

[Source]

    # File lib/wsdl/binding.rb, line 22
22:   def initialize
23:     super
24:     @name = nil
25:     @type = nil
26:     @operations = XSD::NamedElements.new
27:     @soapbinding = nil
28:   end

Public Instance methods

[Source]

    # File lib/wsdl/binding.rb, line 52
52:   def parse_attr(attr, value)
53:     case attr
54:     when NameAttrName
55:       @name = XSD::QName.new(targetnamespace, value.source)
56:     when TypeAttrName
57:       @type = value
58:     else
59:       nil
60:     end
61:   end

[Source]

    # File lib/wsdl/binding.rb, line 34
34:   def parse_element(element)
35:     case element
36:     when OperationName
37:       o = OperationBinding.new
38:       @operations << o
39:       o
40:     when SOAPBindingName
41:       o = WSDL::SOAP::Binding.new
42:       @soapbinding = o
43:       o
44:     when DocumentationName
45:       o = Documentation.new
46:       o
47:     else
48:       nil
49:     end
50:   end

[Source]

    # File lib/wsdl/binding.rb, line 30
30:   def targetnamespace
31:     parent.targetnamespace
32:   end

[Validate]