jkichline/sudzc — Issue #3: soap:Fault not recognized as fault
Author: winsmith
Created: 2012-02-01 13:22:19+00:00
State: open

I'm trying to catch a SoapFault returned by my server, but it isn't recognized as such. Instead, it returns a result of nil.

I'm getting this xml back from the server:

```

soap:Client
System.Web.Services.Protocols.SoapException: joynerror,Security,100,"Access denied"
at Joyn.WebServices.AccountServices.Login(String userName, String password, Boolean createPersistantCookie)
cosevenFault

Security
100
joynerror,Security,100,"Access denied"

```

It gets passed into SoapFault::faultWithXMLDocument: which tries to get the fault's XML element with ```[Soap getNode: [document rootElement] withName: @"Fault"]```. This doesn't work though, since "soap:Fault" doesn't get recognized as the same as "Fault".

How can I work around this? Can I add a namespace somehow? My code works if I change line 26 in SoapFault.m to ```return [SoapFault faultWithXMLElement: [Soap getNode: [document rootElement] withName: @"soap:Fault"]];```, but it seems hacky, and I'm afraid I might break something.