Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Changeset 1987

Show
Ignore:
Timestamp:
09/27/07 17:58:11 (1 year ago)
Author:
nahi
Message:
  • rpc/encoded service + detail element without xsi:type attribute caused NameError? since 1.5.6. closes #435.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1_5/lib/soap/mapping/mapping.rb

    r1982 r1987  
    9292  def self.fault2exception(fault, registry = nil) 
    9393    registry ||= Mapping::DefaultRegistry 
    94     detail = if fault.detail 
    95         soap2obj(fault.detail, registry) || "" 
    96       else 
    97         "" 
    98       end 
     94    detail = "" 
     95    if fault.detail 
     96      begin 
     97        fault.detail.type ||= XSD::QName::EMPTY 
     98        detail = soap2obj(fault.detail, registry) || "" 
     99      rescue MappingError 
     100        detail = fault.detail 
     101      end 
     102    end 
    99103    if detail.is_a?(Mapping::SOAPException) 
    100104      begin