# Soapfaults in ActionWebService

**URL:** <https://www.ruby-forum.com/t/soapfaults-in-actionwebservice/104243>\
**Category:** Rails\
**Created:** [May 15, 2007, 9:24pm UTC](https://www.ruby-forum.com/t/soapfaults-in-actionwebservice/104243 "2007-05-15T21:24:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmendo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3bc359/32.png) [@tmendo](https://www.ruby-forum.com/u/tmendo)\
**Post date:** [May 15, 2007, 9:24pm UTC](https://www.ruby-forum.com/t/soapfaults-in-actionwebservice/104243/1 "2007-05-15T21:24:41Z")

</div>

Hey,

Does anyone know of a way to throw soapexceptions/soapfaults from an  
actionwebservice on rails ?

I thought the correct way to do this would be returning an Exception,  
but that will throw a cast error (due to not being the correct return  
type for the given function).

Can anyone enlighten me?

Tiago M.

---

<div class="post-metadata">

**Author:** ![tmendo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3bc359/32.png) [@tmendo](https://www.ruby-forum.com/u/tmendo)\
**Post date:** [May 15, 2007, 9:51pm UTC](https://www.ruby-forum.com/t/soapfaults-in-actionwebservice/104243/2 "2007-05-15T21:51:44Z")

</div>

I’m working on the same thing. It’s quite annoying as I get nil object  
errors instead of some sort of exception message when anything fails.  
Now  
I’ve only tried with an AWS server and soap4r client; I should give  
other  
language clients a go.

I’ll post if I find something out or find a fix.

Jason
