Web services and SoapExceptions
-
I have a webservice method that throws a soapexception if it has any errors, but when I test the service via the services.asmx?op=webserviceMethod page and an exception is thrown the web page shows a 500 error. I expected it to show some xml with the error message I created, but maybe I'm missing something. Question: Is there a way to view the soap error message (xml) thats part of the SoapException instead of the 500 error?
-
I have a webservice method that throws a soapexception if it has any errors, but when I test the service via the services.asmx?op=webserviceMethod page and an exception is thrown the web page shows a 500 error. I expected it to show some xml with the error message I created, but maybe I'm missing something. Question: Is there a way to view the soap error message (xml) thats part of the SoapException instead of the 500 error?
hi, whenever i have an error which i can't understand after all my personal efforts i copy tht error message and paste in Google Search bar n get useful help. hope it also works for u. Regards, Atif
-
I have a webservice method that throws a soapexception if it has any errors, but when I test the service via the services.asmx?op=webserviceMethod page and an exception is thrown the web page shows a 500 error. I expected it to show some xml with the error message I created, but maybe I'm missing something. Question: Is there a way to view the soap error message (xml) thats part of the SoapException instead of the 500 error?
If you modify the auto generated class that wraps the web service you can get the raw xml. I was more or less just curious about whether or not the detail I added to my soap exception was being sent to the consumer correctly. See OmegaMans article http://www.codeproject.com/cs/webservices/SerializationFun.asp