static public Method

SOAPFault.new(faultcode = nil, faultstring = nil, faultactor = nil, detail = nil)

There's no documentation for this item.

Source Code

# File soap/element.rb, line 59
def initialize(faultcode = nil, faultstring = nil, faultactor = nil, detail = nil)
  super(EleFaultName)
  @elename = EleFaultName
  @encodingstyle = EncodingNamespace

  if faultcode
    self.faultcode = faultcode
    self.faultstring = faultstring
    self.faultactor = faultactor
    self.detail = detail
    self.faultcode.elename = EleFaultCodeName if self.faultcode
    self.faultstring.elename = EleFaultStringName if self.faultstring
    self.faultactor.elename = EleFaultActorName if self.faultactor
    self.detail.elename = EleFaultDetailName if self.detail
  end
  faultcode.parent = self if faultcode
  faultstring.parent = self if faultstring
  faultactor.parent = self if faultactor
  detail.parent = self if detail
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.