471,354 Members | 1,199 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

Catching java exceptions

I have a dot net web service that consumes a number of other web
services, one of which is in java. Is there anything special I need to
do to catch the exceptions that this service generates?

Feb 3 '06 #1
4 1207
Provided it follows the SOAP specifications, it should return SOAP Fault
elements just like any other webservice. If it has documentation or WSDL you
can examine that to see if there are any special considerations.
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"ap********@gmail.com" wrote:
I have a dot net web service that consumes a number of other web
services, one of which is in java. Is there anything special I need to
do to catch the exceptions that this service generates?

Feb 3 '06 #2
Is the Java web service managed? If not then a global exception using
Exception class should be used.

<ap********@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
I have a dot net web service that consumes a number of other web
services, one of which is in java. Is there anything special I need to
do to catch the exceptions that this service generates?

Feb 3 '06 #3
ap********@gmail.com wrote:
I have a dot net web service that consumes a number of other web
services, one of which is in java. Is there anything special I need to
do to catch the exceptions that this service generates?


IIRC, it will generate a SoapException with the name and message of the
Java exception embedded in it. In other words, not that different from
any other webservice generating an exception. Don't forget that the bit
of .NET which is talking to the server doesn't know whether it's
talking to a Java webservice or a .NET one or something entirely
different, so differences should be few.

Jon

Feb 3 '06 #4
Good to know, Jon. Thanks.

Feb 3 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Rolf | last post: by
2 posts views Thread by Keith Bolton | last post: by
17 posts views Thread by Bryan Bullard | last post: by
7 posts views Thread by cmay | last post: by
7 posts views Thread by Derek Schuff | last post: by
reply views Thread by eight02645999 | last post: by
5 posts views Thread by Simon Tamman | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.