473,396 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 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 1241
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rolf | last post by:
I understand a compilation error occurs when a method that throws no exceptions is the only code in a try block. What I don't understnad is why I can specify the catching of an Exception for a...
2
by: Keith Bolton | last post by:
I am handling exceptions currently using try, except. Generally I don't handle specific exceptions and am catching all. Then if an exception occurs, I would like to capture that error string....
17
by: Bryan Bullard | last post by:
hi, is there a way to force the user of an object to catch exceptions of specific type? for instance a compile error is issued if exception 'ExeceptionXXX' thrown by method...
7
by: cmay | last post by:
FxCop complains every time I catch System.Exception. I don't see the value in trying to catch every possible exception type (or even figuring out what exceptions can be caught) by a given block...
12
by: Vasco Lohrenscheit | last post by:
Hi, I have a Problem with unmanaged exception. In the debug build it works fine to catch unmanaged c++ exceptions from other dlls with //managed code: try { //the form loads unmanaged dlls...
7
by: Derek Schuff | last post by:
I'm sorry if this is a FAQ or on an easily-accesible "RTFM" style page, but i couldnt find it. I have some code like this: for line in f: toks = line.split() try: if int(toks,16) ==...
0
by: eight02645999 | last post by:
hi i have to run a java program inside my python script. i have some java classes declared: os.environ = "blah path" then i used the os.system method to invoke the java program and using ret...
5
by: Simon Tamman | last post by:
I have an object named DisasterRecovery. The Ctor of this object is this: private DisasterRecovery() { Application.ThreadException+= new...
0
by: zottty | last post by:
Hello, I have to continue a C#/.NET project, which has a lot of uncaught exceptions. Do you know any way to get myself forced by the compiler to catch all of the exceptions? (like in Java) Right...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.