On 8/3/06, Nate Imaqaguy <breakingsoftware / gmail.com> wrote:
> Hmmm>
> ----------------------------
> if results = soap.FindPatientById( param )
>         then puts results.first_name
>              puts results.last_name
> else
>         begin
>         rescue ::SOAP::FaultError => e
>         # rescue ::XSD::ValueSpaceError => e
>         puts e.to_s
>         end
> end
> -----------------------------
>
> I had something pretty similar to this already.    ©Ăut 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


-- 
Bira
http://compexplicita.blogspot.com
http://sinfoniaferida.blogspot.com