Parent

Files

Class Index [+]

Quicksearch

WSDL::SOAP::Header

Attributes

headerfault[R]
message[R]
part[R]
use[R]
encodingstyle[R]
namespace[R]

Public Class Methods

new() click to toggle source
    # File lib/wsdl/soap/header.rb, line 25
25:   def initialize
26:     super
27:     @message = nil
28:     @part = nil
29:     @use = nil
30:     @encodingstyle = nil
31:     @namespace = nil
32:     @headerfault = nil
33:   end

Public Instance Methods

find_message() click to toggle source
    # File lib/wsdl/soap/header.rb, line 39
39:   def find_message
40:     root.message(@message) or raise RuntimeError.new("#{@message} not found")
41:   end
find_part() click to toggle source
    # File lib/wsdl/soap/header.rb, line 43
43:   def find_part
44:     find_message.parts.each do |part|
45:       if part.name == @part
46:         return part
47:       end
48:     end
49:     raise RuntimeError.new("#{@part} not found")
50:   end
parse_attr(attr, value) click to toggle source
    # File lib/wsdl/soap/header.rb, line 63
63:   def parse_attr(attr, value)
64:     case attr
65:     when MessageAttrName
66:       if value.namespace.nil?
67:         value = XSD::QName.new(targetnamespace, value.source)
68:       end
69:       @message = value
70:     when PartAttrName
71:       @part = value.source
72:     when UseAttrName
73:       @use = value.source
74:     when EncodingStyleAttrName
75:       @encodingstyle = value.source
76:     when NamespaceAttrName
77:       @namespace = value.source
78:     else
79:       nil
80:     end
81:   end
parse_element(element) click to toggle source
    # File lib/wsdl/soap/header.rb, line 52
52:   def parse_element(element)
53:     case element
54:     when HeaderFaultName
55:       o = WSDL::SOAP::HeaderFault.new
56:       @headerfault = o
57:       o
58:     else
59:       nil
60:     end
61:   end
targetnamespace() click to toggle source
    # File lib/wsdl/soap/header.rb, line 35
35:   def targetnamespace
36:     parent.targetnamespace
37:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.