When calling a function with DataHandler as an attachment:

public void doit(DataHandler dh);

I would do this:

DataHandler dh = new DataHandler(new FileDataSource(filename));
mystub.doit(dh);

The problem is that when filename is not found, or a directory, an exception is generated in the client side instantly after the call, however, Axis still proceeds any way!

So, the server will get a request, and generate an exception. This will propagate back to the client, then the client get the exception. Is this the way it should be handled? Also, when this happens, it takes along time for the server to return, so there's a bug on the server here too. It shows that the server does not handle error well with regard to performance.

Reply via email to