Flowdock
method

decode_tag

Importance_0
v1_8_7_330 - Show latest stable - 0 notes - Class: SOAP::Parser
decode_tag(ns, name, attrs, parent, encodingstyle) private

No documentation

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

Hide source
# File lib/soap/parser.rb, line 166
  def decode_tag(ns, name, attrs, parent, encodingstyle)
    ele = ns.parse(name)

    # Envelope based parsing.
    if ((ele.namespace == @envelopenamespace) ||
        (@allow_unqualified_element && ele.namespace.nil?))
      o = decode_soap_envelope(ns, ele, attrs, parent)
      return o if o
    end

    # Encoding based parsing.
    handler = find_handler(encodingstyle)
    if handler
      return handler.decode_tag(ns, ele, attrs, parent)
    else
      raise FormatDecodeError.new("Unknown encodingStyle: #{ encodingstyle }.")
    end
  end
Register or log in to add new notes.