Forum Discussion
AlexKaras
14 years agoCommunity Hero
What operating system and IIS version are installed on the server that hosts web service?
If it is IIS7 and up, than by default, IIS7 returns custom http error page which is definitely not the expected SOAP result.
In order to test negative scenarios (those returning exceptions) with web services, you must disable suppression of the original error messages on the IIS.
Also, it is possible that your web service do not support SOAP1.2 but only SOAP1.1 which requires installation of .Net 1.1 for IIS.
For more info I would recommend the following:
// How to install .Net 1.1 for IIS 7
//http://learn.iis.net/page.aspx/472/how-to-install-aspnet-11-with-iis-on-vista-and-windows-2008/
//http://learn.iis.net/page.aspx/472/how-to-install-aspnet-11-with-iis7-and-above-on-vista-and-windows-2008/
//https://help.maximumasp.com/KB/a628/running-aspnet-11-on-windows-server-2008.aspx
//
// Advice to solve the problem of IIS7 overriding custom errors when setting response status code
//http://forums.iis.net/t/1146653.aspx
//http://mvolo.com/blogs/serverside/archive/2007/07/26/Troubleshoot-IIS7-errors-like-a-pro.aspx
//http://www.iis.net/ConfigReference/system.webServer/httpErrors
//http://learn.iis.net/page.aspx/267/how-to-use-http-detailed-errors-in-iis/
//http://blogs.iis.net/ksingla/archive/2008/02/18/what-to-expect-from-iis7-custom-error-module.aspx
//http://stackoverflow.com/questions/434272/iis7-overrides-customerrors-when-setting-response-statuscode
If it is IIS7 and up, than by default, IIS7 returns custom http error page which is definitely not the expected SOAP result.
In order to test negative scenarios (those returning exceptions) with web services, you must disable suppression of the original error messages on the IIS.
Also, it is possible that your web service do not support SOAP1.2 but only SOAP1.1 which requires installation of .Net 1.1 for IIS.
For more info I would recommend the following:
// How to install .Net 1.1 for IIS 7
//http://learn.iis.net/page.aspx/472/how-to-install-aspnet-11-with-iis-on-vista-and-windows-2008/
//http://learn.iis.net/page.aspx/472/how-to-install-aspnet-11-with-iis7-and-above-on-vista-and-windows-2008/
//https://help.maximumasp.com/KB/a628/running-aspnet-11-on-windows-server-2008.aspx
//
// Advice to solve the problem of IIS7 overriding custom errors when setting response status code
//http://forums.iis.net/t/1146653.aspx
//http://mvolo.com/blogs/serverside/archive/2007/07/26/Troubleshoot-IIS7-errors-like-a-pro.aspx
//http://www.iis.net/ConfigReference/system.webServer/httpErrors
//http://learn.iis.net/page.aspx/267/how-to-use-http-detailed-errors-in-iis/
//http://blogs.iis.net/ksingla/archive/2008/02/18/what-to-expect-from-iis7-custom-error-module.aspx
//http://stackoverflow.com/questions/434272/iis7-overrides-customerrors-when-setting-response-statuscode