use -ebc option. try with a nightly build.
thanks,
Amila.
On Sun, Sep 7, 2008 at 10:43 AM, coolers16 <[EMAIL PROTECTED]> wrote:
>
> If we have a <wsdl:fault> element declared in the wsdl for an operation,
> the
> wsdl2java (from Axis2) would create a java artifact for the fault message
> that extends the java.lang.Exception. Is it possible that the the fault
> exception extends a business exception instead of java.lang.Exception?
>
> For example, the following fault message in a wsdl:
>
> <message name="SampleFaultMessage">
>
> <part name="fault" element="tns:SampleFault"/>
>
> </message>
>
> upon running the wsdl2java utility will create the java file
> (SampleFaultMessage.java) as shown below.
>
>
> public class SampleFaultMessage extends java.lang.Exception{
>
> }
>
>
> Let's say I have a bussiness exception called MyException.java.
>
> public class MyException extends java.lang.Exception{
>
> }
>
>
>
> Is it possible through wsdl2java such that the SampleFaultMessage extends
> MyException as shown below.
>
>
> public class SampleFaultMessage extends MyException{
>
> }
>
>
> Can the following above be possible by wsdl2java? In case this is not
> possible, could you please suggest us some workarounds or possible solution
> that we can accomplish this?
>
> Thanks in advance and really appreciate your help.
> --
> View this message in context:
> http://www.nabble.com/Exception-class-generated-from-wsdl2java-%28Axis2%29-extending-custom-exception-tp19354457p19354457.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Amila Suriarachchi,
WSO2 Inc.