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

Changeset 1066

Show
Ignore:
Timestamp:
11/27/03 23:30:20 (5 years ago)
Author:
nahi
Message:

* decode unknown element according to self-defined type even if WSDL was given.

Files:

Legend:

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

    r1058 r1066  
    163163      @refpool << o 
    164164    elsif @decode_typemap 
    165         # to parse multi-ref element with decode_tag_by_type. 
    166         # && (parent.node.class != SOAPBody || @is_first_top_ele) 
    167165      o = decode_tag_by_wsdl(ns, elename, type, parent.node, arytype, extraattr) 
    168166    else 
     
    334332  def decode_tag_by_wsdl(ns, elename, typestr, parent, arytypestr, extraattr) 
    335333    o = nil 
     334    # should branch by root attribute? 
    336335    if parent.class == SOAPBody 
    337336      if @is_first_top_ele 
     
    364363    end 
    365364 
    366     # parent.definedtype is nil means the parent is SOAPUnknown.  SOAPUnknown is 
    367     # generated by decode_tag_by_type when its type is anyType. 
     365    # parent.definedtype == nil means the parent is SOAPUnknown.  SOAPUnknown 
     366    # is generated by decode_tag_by_type when its type is anyType. 
    368367    parenttype = parent.definedtype || @decode_typemap[parent.type] 
    369368    unless parenttype 
    370       raise EncodingStyleError.new("Unknown type '#{ parent.type }'.") 
     369      return decode_tag_by_type(ns, elename, typestr, parent, arytypestr, 
     370        extraattr) 
    371371    end 
    372372