-
1. Re: Where is the Wiki section
jason.greene Nov 15, 2004 5:07 PM (in response to cglommen)Custom exception support have been fixed in 4.0.1 (soon to be released). Custom exceptions are used in the same way that custom beans are used. The only difference is that a constructor is searched for (instead of an accessor method) since java does not expose acesss to the exception message. All you have to do is create a custom exception, and make sure that you have a constructor for all values in your exception, as well as get methods.
An important thing to note is that wscompile is not very good about generating the correct order of the arguments. Which means that your constructor may be called with the arguments in the wrong order. If this occurs you will need to refer to <a href="http://www.jboss.org/wiki/Wiki.jsp?page=WSTypeMapping>WSTypeMapping in the wiki to create a ws4ee-deployment.xml file which controls the order.
From my observations, it appears that wscompile generates its wsdl in subclass->superclass, type, name order.
-Jason -
2. Re: Where is the Wiki section
cglommen Nov 15, 2004 6:14 PM (in response to cglommen)Thanks for the reply. Could you be more specific on how I create/utilize custom faults? Or where to find such information?
-
3. Re: Where is the Wiki section
thomas.diesler Nov 15, 2004 7:53 PM (in response to cglommen)If you are familiar with CVS, check out jboss-4.0 Branch_4_0.
cd testsuite
ant
ant tests-webservice
You will see a test case for custom exceptions.