I'm trying to call a soap webservice and i created my webservice to return a SoapException in case user enters invalid data. The service works if user enter correct data. However when invalid data is entered i am expecting to get a SoapException (Or FaultException) but i'm getting InvalidOpperationException with message:
Not supported Content-Type in the response: 'text/html; charset=ISO-8859-1'
GW fout 500|
Interne server fout
I know that 500 error is internal server error so i might havent setup web.config propperly or its something else.
So my question is, how to properly catch errors that are thrown by the webservice?
Thanks in advance!