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

Changeset 1056

Show
Ignore:
Timestamp:
11/21/03 00:33:45 (5 years ago)
Author:
nahi
Message:

Raise error if parse fails.

Files:

Legend:

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

    r1012 r1056  
    5959    def unmarshal(stream, mapping_registry = MarshalMappingRegistry) 
    6060      header, body = SOAP::Processor.unmarshal(stream) 
    61       #Mapping.soap2obj(body.root_node, mapping_registry) 
     61      if body.nil? 
     62        raise ArgumentError.new("Illegal SOAP marshal format.") 
     63      end 
    6264      Mapping.soap2obj(body.root_node, mapping_registry) 
    6365    end