From: fish man Date: 2006-04-03T17:47:03+09:00 Subject: SOAP Hi quick question, I have a soap server and soap client ruby scripts. When I try to run the soap client without starting up the up the server the client program crashes out, as you would expect. But I'd like to catch that exception and wait 5 min's before it tries again. so I have a little bit of code that goes. begin Timeout::timeout(900) do #try 3 times before quiting. not_connected = true while not_connected == true do begin @soap_wrp = SOAP::RPC::Driver.new("http://localhost:9001", "http://fasw111/Submit") not_connected = false puts @soap_wrp rescue SystemExit not_connected = true sleep 300 #sleep for 5 min end end #do some soap stuff rescue Timeout::Error puts "time out error" soap_wrp = -1 end But once the SOAP::RPC::Driver.new fails to find the server there seems to be a complete crashs out of the code. Does anyone know how I can get around this? Thanks. fishman2001. -- Posted via http://www.ruby-forum.com/.