Parent

Files

Class Index [+]

Quicksearch

WSDL::PortType

Attributes

name[R]
operations[R]

Public Class Methods

new() click to toggle source
    # File lib/wsdl/portType.rb, line 24
24:   def initialize
25:     super
26:     @name = nil
27:     @operations = XSD::NamedElements.new
28:   end

Public Instance Methods

find_binding() click to toggle source

may be nil if not defined

    # File lib/wsdl/portType.rb, line 31
31:   def find_binding
32:     root.bindings.find { |item| item.type == @name }
33:   end
locations() click to toggle source
    # File lib/wsdl/portType.rb, line 35
35:   def locations
36:     binding = find_binding
37:     return [] if binding.nil?
38:     bind_name = binding.name
39:     result = []
40:     root.services.each do |service|
41:       service.ports.each do |port|
42:         if port.binding == bind_name
43:           result << port.soap_address.location if port.soap_address
44:         end
45:       end
46:     end
47:     result
48:   end
parse_attr(attr, value) click to toggle source
    # File lib/wsdl/portType.rb, line 64
64:   def parse_attr(attr, value)
65:     case attr
66:     when NameAttrName
67:       @name = XSD::QName.new(targetnamespace, value.source)
68:     else
69:       nil
70:     end
71:   end
parse_element(element) click to toggle source
    # File lib/wsdl/portType.rb, line 50
50:   def parse_element(element)
51:     case element
52:     when OperationName
53:       o = Operation.new
54:       @operations << o
55:       o
56:     when DocumentationName
57:       o = Documentation.new
58:       o
59:     else
60:       nil
61:     end
62:   end
targetnamespace() click to toggle source
    # File lib/wsdl/portType.rb, line 20
20:   def targetnamespace
21:     parent.targetnamespace
22:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.