Hi,

I'm writing up a couple of webservices in apache axis 1.2b2, to be consumed primarily by non-java clients, most notably c#. What are the best practices with respect to throwing exceptions?

Thus far I have written some wsdl (hand tweaked from the java2wsdl output), generated my skeletons, and implemented the method bodies. As part of this, I throw a custom exception from each method, which is made up of a string (a human readable error message) and an int (which maps to a well known error code). My c# clients though just get either a whole stack trace (ick) or a "System Exception" string, which prevents them from checking the status code.

Any suggestions on how to make this a little more .Net friendly, or in general a little more non-java friendly?

Thanks,

P

_________________________________________________________________
MSN� Calendar keeps you organized and takes the effort out of scheduling get-togethers. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN� Premium right now and get the first two months FREE*.




Reply via email to