By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,347 Members | 2,120 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,347 IT Pros & Developers. It's quick & easy.

Exceptions thrown by a web service.

P: n/a
UJ
What exception can be thrown when calling a web service - specifically
things like the web site is down, there's no function, ...

TIA - Jeff.
Mar 24 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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
"UJ" wrote:
What exception can be thrown when calling a web service - specifically
things like the web site is down, there's no function, ...

TIA - Jeff.

Mar 24 '06 #2

P: n/a
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/de...us/cpref/html/
frlrfsystemwebservicesprotocolssoapexceptionmember stopic.asp

Mohamed M Mahfouz
Support Engineer
Mar 26 '06 #3

P: n/a
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.

"Mohamoss" wrote:
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/de...us/cpref/html/
frlrfsystemwebservicesprotocolssoapexceptionmember stopic.asp

Mohamed M Mahfouz
Support Engineer

Mar 26 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.