How do I get the error code and description from a Savon::SOAPFault?
Posted
by Michael Conigliaro
on Stack Overflow
See other posts from Stack Overflow
or by Michael Conigliaro
Published on 2010-05-13T21:42:18Z
Indexed on
2010/05/13
21:44 UTC
Read the original article
Hit count: 240
I can see in the Savon log that my SOAP faults contain XML like this:
<errorCode>666</errorCode><errorDescription>some evil error</errorDescription>
Does anyone know how to parse the error code and description out of the response? Sorry if this is a stupid question, but I've tried everything, and I haven't been able to find any documentation on this.
© Stack Overflow or respective owner