Excellent; thanks!



Bira wrote:
> On 8/3/06, Nate Imaqaguy <breakingsoftware / gmail.com> wrote:
>>         puts e.to_s
>>         end
>> end
>> -----------------------------
>>
>> I had something pretty similar to this already.    but it's not
>> working.
> 
> From what I understand, I believe your method call has to be inside
> the "begin...rescue" block, or "rescue" won't be able to see the error
> when it happens.
> 
> In other words, something like this:
> 
> begin
>     if ( results = soap.FindPatientById( param ) )
>         puts results.last_name
>     end
> rescue ::SOAP::FaultError => e
>     puts e.to_s
> end


-- 
Posted via http://www.ruby-forum.com/.