Class SOAP::SOAPFault
In: lib/soap/element.rb
Parent: SOAPStruct

Methods

Included Modules

SOAPEnvelopeElement SOAPCompoundtype

Public Class methods

[Source]

    # File lib/soap/element.rb, line 59
59:   def initialize(faultcode = nil, faultstring = nil, faultactor = nil, detail = nil)
60:     super(EleFaultName)
61:     @elename = EleFaultName
62:     @encodingstyle = EncodingNamespace
63: 
64:     if faultcode
65:       self.faultcode = faultcode
66:       self.faultstring = faultstring
67:       self.faultactor = faultactor
68:       self.detail = detail
69:       self.faultcode.elename = EleFaultCodeName if self.faultcode
70:       self.faultstring.elename = EleFaultStringName if self.faultstring
71:       self.faultactor.elename = EleFaultActorName if self.faultactor
72:       self.detail.elename = EleFaultDetailName if self.detail
73:     end
74:     faultcode.parent = self if faultcode
75:     faultstring.parent = self if faultstring
76:     faultactor.parent = self if faultactor
77:     detail.parent = self if detail
78:   end

Public Instance methods

[Source]

    # File lib/soap/element.rb, line 39
39:   def detail
40:     self['detail']
41:   end

[Source]

    # File lib/soap/element.rb, line 55
55:   def detail=(rhs)
56:     self['detail'] = rhs
57:   end

[Source]

    # File lib/soap/element.rb, line 80
80:   def encode(generator, ns, attrs = {})
81:     SOAPGenerator.assign_ns(attrs, ns, EnvelopeNamespace)
82:     SOAPGenerator.assign_ns(attrs, ns, EncodingNamespace)
83:     attrs[ns.name(AttrEncodingStyleName)] = EncodingNamespace
84:     name = ns.name(@elename)
85:     generator.encode_tag(name, attrs)
86:     yield(self.faultcode)
87:     yield(self.faultstring)
88:     yield(self.faultactor)
89:     yield(self.detail) if self.detail
90:     generator.encode_tag_end(name, true)
91:   end

[Source]

    # File lib/soap/element.rb, line 35
35:   def faultactor
36:     self['faultactor']
37:   end

[Source]

    # File lib/soap/element.rb, line 51
51:   def faultactor=(rhs)
52:     self['faultactor'] = rhs
53:   end

[Source]

    # File lib/soap/element.rb, line 27
27:   def faultcode
28:     self['faultcode']
29:   end

[Source]

    # File lib/soap/element.rb, line 43
43:   def faultcode=(rhs)
44:     self['faultcode'] = rhs
45:   end

[Source]

    # File lib/soap/element.rb, line 31
31:   def faultstring
32:     self['faultstring']
33:   end

[Source]

    # File lib/soap/element.rb, line 47
47:   def faultstring=(rhs)
48:     self['faultstring'] = rhs
49:   end

[Validate]