[
https://issues.apache.org/jira/browse/AXIS2-3123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12520464
]
Haneef Ali commented on AXIS2-3123:
-----------------------------------
I'm using ADB binding. I don't understand your question.
For all the elements declared in wsdl, ADB binding generates classes. If any
element is used as fault then it also needs to implement java.lang.Throwable.
You can easily check this by generating stubs from a wsdl which has operation
defined with faults. Generated stubs won't compile.
Note:
In Axis 1.2 this was done by creating one more class called
"MyFaultException" besides "MyFault". In Axis 1.3 in the feature list it is
mentioned that that they have renamed the class as "MyFault" instead of
MyFaultException. But looks like they forgot to derive it from Throwable.
This is the feature in the release notes I'm talking about
----- Name of the wsdl2java generated Exception classes changed ----
> Axis 1.3 exception class doesn't inherit from java.lang.exception ( broken)
> -----------------------------------------------------------------------------
>
> Key: AXIS2-3123
> URL: https://issues.apache.org/jira/browse/AXIS2-3123
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.3
> Reporter: Haneef Ali
> Priority: Blocker
>
> In my WSDL I have a faultType say "MyFault". In Axis2_1.2 there used to be a
> class called MyFaultException which inherited from java.lang.Exception
> In Axis2_1.3 there is no such class, but the generated class "MyFault"
> doesn't inherit from java.lang.Exception. Generated stub/skeleton looks like
> class MyStub{
> public class MyResponse myMethod (myRequest pRequest) throws
> MyFault
> }
> Which obviously won't compile, since MyFault is not inherited from
> java.lang.Exception.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]