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

Changeset 1585

Show
Ignore:
Timestamp:
07/21/05 23:15:41 (3 years ago)
Author:
nahi
Message:

SOAP::Header::SimpleHeader? (de)serialization throws on SimpleHeader?.on_(in|out)bound when header is a String. simple single element headerItem was not allowed. Thanks to emil.
closes #129.

Files:

Legend:

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

    r1520 r1585  
    2020  end 
    2121 
    22   # Should return a Hash or nil. 
     22  # Should return a Hash, String or nil. 
    2323  def on_simple_outbound 
    2424    nil 
    2525  end 
    2626 
    27   # Given header is a Hash or nil. 
     27  # Given header is a Hash, String or nil. 
    2828  def on_simple_inbound(header, mustunderstand) 
    2929  end 
     
    3535 
    3636  def on_inbound(header, mustunderstand) 
    37     h = header.to_obj 
     37    h = header.respond_to?(:to_obj) ? header.to_obj : header.data 
    3838    on_simple_inbound(h, mustunderstand) 
    3939  end