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

Changeset 1658

Show
Ignore:
Timestamp:
11/03/05 09:54:13 (3 years ago)
Author:
nahi
Message:

allow document method definition with nil instead of [] when its request/response is emtpy. closes #174.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/soap/rpc/router.rb

    r1597 r1658  
    465465     
    466466    def response_doc(result, mapping_registry, literal_mapping_registry, opt) 
    467       if @doc_response_qnames.size == 1 and !result.is_a?(Array) 
     467      if @doc_response_qnames.size == 0 
     468        result = [] 
     469      elsif @doc_response_qnames.size == 1 and !result.is_a?(Array) 
    468470        result = [result] 
    469471      end