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

Changeset 1666

Show
Ignore:
Timestamp:
11/12/05 15:01:13 (3 years ago)
Author:
nahi
Message:

added a sample for #180.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/test/soap/test_streamhandler.rb

    r1665 r1666  
    237237    end 
    238238  end 
     239 
     240  # not used 
     241  class ExternalProcessStreamHandler < SOAP::StreamHandler 
     242    def self.create(options) 
     243      new 
     244    end 
     245 
     246    def send(endpoint_url, conn_data, soapaction = nil, charset = nil) 
     247      cmd = "cat" # !! 
     248      IO.popen(cmd, "w+") do |io| 
     249        io.write(conn_data.send_string) 
     250        io.close_write 
     251        conn_data.receive_string = io.read 
     252      end 
     253      conn_data 
     254    end 
     255 
     256    def reset(endpoint_url = nil) 
     257    end 
     258  end 
    239259end 
    240260