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

Ticket #352: literalregistry.diff

File literalregistry.diff, 0.8 kB (added by nahi, 1 year ago)

I found that [1805] unintentionally changed schema definition detection order.

  • lib/soap/mapping/literalregistry.rb

    old new  
    7272    ele = nil 
    7373    if obj.is_a?(SOAP::Mapping::Object) 
    7474      ele = mappingobj2soap(obj, qname) 
     75    elsif definition = schema_definition_from_class(obj.class) 
     76      # search with class first.  obj can be an instance of a subclass of 
     77      # defined class. 
     78      ele = stubobj2soap(obj, qname, definition) 
    7579    elsif definition = schema_definition_from_elename(qname) 
    7680      ele = stubobj2soap(obj, qname, definition) 
    77     elsif definition = schema_definition_from_class(obj.class) 
    78       ele = stubobj2soap(obj, qname, definition) 
    7981    else 
    8082      ele = anyobj2soap(obj, qname) 
    8183    end