You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Manoj Khangaonkar (JIRA)" <ji...@apache.org> on 2007/04/13 23:18:15 UTC
[jira] Commented: (AXIS2-2325) Java2WSDL does not generate faults
correctly
[ https://issues.apache.org/jira/browse/AXIS2-2325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12488788 ]
Manoj Khangaonkar commented on AXIS2-2325:
------------------------------------------
Hi,
The things I think we need to fix are
(1) WSDL does allow multiple fault messages. If a method declared multiple exception, there needs to 1 fault for each exception.
(2) Need to generate messages for each fault
(3) The binding section needs an fault element for each fault
(4) generating faultname = operation name + "Fault" is not necessary , you can use the exception type name. In any case this does not work for
multiple faults.
(5) types section - Generate the type definition for each fault correctly. Since exception generally extend java.lang.Exception or other exception classes, we have
to be careful here
Will look into providing a patch
Mj
> Java2WSDL does not generate faults correctly
> --------------------------------------------
>
> Key: AXIS2-2325
> URL: https://issues.apache.org/jira/browse/AXIS2-2325
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.1.1
> Environment: Windows XP Java 1.5, Eclipse 3.2.2, Axis2 Eclipse Plugin 1.2.1
> Reporter: Jorge Fernández
> Assigned To: Deepal Jayasinghe
> Priority: Minor
> Attachments: API.java, API.wsdl, IncorrectPasswordFault.java, IncorrectUserFault.java
>
>
> The first problem is that in the WSDL generated my fault name is ignored and instead it's compound from the operation name and "Fault".
> Also if I throw two exceptions from one operation, in the WSDL only one appears and with the name I said before.
> I attach the API from where I build the WSDL, the Faults classes and the WSDL generated.
--
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org