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

Changeset 1978

Show
Ignore:
Timestamp:
09/21/07 18:18:19 (10 months ago)
Author:
nahi
Message:
  • unqualified element 'Envelope', 'Header', 'Body' and 'Fault' caused an error while parsing. closes #431.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/soap/parser.rb

    r1970 r1978  
    209209      end 
    210210    elsif ele.name == EleHeader 
    211       unless parent.node.is_a?(SOAPEnvelope) 
    212         raise FormatDecodeError.new("Header should be a child of Envelope.") 
    213       end 
     211      return nil unless parent.node.is_a?(SOAPEnvelope) 
    214212      o = SOAPHeader.new 
    215213      parent.node.header = o 
    216214    elsif ele.name == EleBody 
    217       unless parent.node.is_a?(SOAPEnvelope) 
    218         raise FormatDecodeError.new("Body should be a child of Envelope.") 
    219       end 
     215      return nil unless parent.node.is_a?(SOAPEnvelope) 
    220216      o = SOAPBody.new 
    221217      parent.node.body = o 
     
    233229        body.fault = o 
    234230      else 
    235         raise FormatDecodeError.new("Fault should be a child of Body.") 
     231        return nil 
    236232      end 
    237233    end 
  • trunk/lib/soap/rpc/proxy.rb

    r1975 r1978  
    5454    @operation_by_soapaction = {} 
    5555    @mandatorycharset = nil 
     56    # TODO: set to false by default or drop thie option in 1.6.0 
    5657    @allow_unqualified_element = true 
    5758    @default_encodingstyle = nil