all groups > dotnet web services > march 2006 >
You're in the

dotnet web services

group:

Exceptions thrown by a web service.


Exceptions thrown by a web service. UJ
3/24/2006 8:04:36 AM
dotnet web services:
What exception can be thrown when calling a web service - specifically
things like the web site is down, there's no function, ...

TIA - Jeff.

RE: Exceptions thrown by a web service. Pandurang Nayak
3/24/2006 11:05:01 AM
SoapException catches most of the exceptions that are thrown. You might want
to try/catch your calls with that.

Sometimes, if the server returned a default error page, the soap client sees
that instead of the SOAP/XML reponse it was expecting and says "Invalid SOAP
result".

Regards,
Pandurang
--
blog: www.thinkingMS.com/pandurang


[quoted text, click to view]
RE: Exceptions thrown by a web service. Kolbis Guy
3/26/2006 2:50:28 PM
No matter what, you will always get a soapexception.
The idea is to catch the real exception and add it a fault element that
indicates the real exception.

[quoted text, click to view]
RE: Exceptions thrown by a web service. mohamed.mossad NO[at]SPAM egdsc.microsoft.com
3/26/2006 3:47:31 PM
Hi
Anything would get you back a SoupException , you need to be looking in for
the DetailElementName to get the details of the soup exception fault . The
Class on MSDN is

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemwebservicesprotocolssoapexceptionmemberstopic.asp

Mohamed M Mahfouz
AddThis Social Bookmark Button