method

decode_resolve_id

Importance_0
v1_8_7_330 - Show latest stable - 0 notes - Class: SOAP::EncodingStyle::SOAPHandler
decode_resolve_id() private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/soap/encodingstyle/soapHandler.rb, line 554
  def decode_resolve_id
    count = @refpool.length     # To avoid infinite loop
    while !@refpool.empty? && count > 0
      @refpool = @refpool.find_all { |ref|
        o = @idpool.find { |item|
          item.id == ref.refid
        }
        if o.is_a?(SOAPReference)
          true # link of link.
        elsif o
          ref.__setobj__(o)
          false
        elsif o = ref.rootnode.external_content[ref.refid]
          ref.__setobj__(o)
          false
        else
          raise EncodingStyleError.new("unresolved reference: #{ref.refid}")
        end
      }
      count -= 1
    end
  end
Register or log in to add new notes.