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 "Martin Weindel (JIRA)" <ji...@apache.org> on 2006/05/13 23:39:08 UTC
[jira] Created: (AXIS2-728) Generated WSDL contains duplicate fault
messages if multiple operations define some fault
Generated WSDL contains duplicate fault messages if multiple operations define some fault
-----------------------------------------------------------------------------------------
Key: AXIS2-728
URL: http://issues.apache.org/jira/browse/AXIS2-728
Project: Apache Axis 2.0 (Axis2)
Type: Bug
Components: core
Versions: 1.0
Reporter: Martin Weindel
To reproduce the bug, use the attached file demo-fault.wsdl to generate a AAR with WSDL2Java.
The defined service contains a port type with two methods. Both methods can throw the same fault ("DemoFault" called in the example). If you now deploy this service and retrieve the WSDL from the axis2 server, it contains two duplicate definitions of the fault message (see attached file axis2-services-xxx.wsdl).
This causes several client code generators to fail with errors.
I have added a patch for org.apache.axis2.description.AxisService2OM fixing this behaviour.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (AXIS2-728) Generated WSDL contains duplicate fault
messages if multiple operations define some fault
Posted by "Martin Weindel (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-728?page=all ]
Martin Weindel updated AXIS2-728:
---------------------------------
Attachment: axis2-services-xxx.wsdl
returned WSDL from Axis2 server
> Generated WSDL contains duplicate fault messages if multiple operations define some fault
> -----------------------------------------------------------------------------------------
>
> Key: AXIS2-728
> URL: http://issues.apache.org/jira/browse/AXIS2-728
> Project: Apache Axis 2.0 (Axis2)
> Type: Bug
> Components: core
> Versions: 1.0
> Reporter: Martin Weindel
> Attachments: axis2-services-xxx.wsdl, demo-fault.wsdl
>
> To reproduce the bug, use the attached file demo-fault.wsdl to generate a AAR with WSDL2Java.
> The defined service contains a port type with two methods. Both methods can throw the same fault ("DemoFault" called in the example). If you now deploy this service and retrieve the WSDL from the axis2 server, it contains two duplicate definitions of the fault message (see attached file axis2-services-xxx.wsdl).
> This causes several client code generators to fail with errors.
> I have added a patch for org.apache.axis2.description.AxisService2OM fixing this behaviour.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (AXIS2-728) Generated WSDL contains duplicate fault
messages if multiple operations define some fault
Posted by "Martin Weindel (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-728?page=all ]
Martin Weindel updated AXIS2-728:
---------------------------------
Attachment: demo-fault.wsdl
original WSDL definition
> Generated WSDL contains duplicate fault messages if multiple operations define some fault
> -----------------------------------------------------------------------------------------
>
> Key: AXIS2-728
> URL: http://issues.apache.org/jira/browse/AXIS2-728
> Project: Apache Axis 2.0 (Axis2)
> Type: Bug
> Components: core
> Versions: 1.0
> Reporter: Martin Weindel
> Attachments: demo-fault.wsdl
>
> To reproduce the bug, use the attached file demo-fault.wsdl to generate a AAR with WSDL2Java.
> The defined service contains a port type with two methods. Both methods can throw the same fault ("DemoFault" called in the example). If you now deploy this service and retrieve the WSDL from the axis2 server, it contains two duplicate definitions of the fault message (see attached file axis2-services-xxx.wsdl).
> This causes several client code generators to fail with errors.
> I have added a patch for org.apache.axis2.description.AxisService2OM fixing this behaviour.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (AXIS2-728) Generated WSDL contains duplicate fault
messages if multiple operations define some fault
Posted by "Martin Weindel (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-728?page=all ]
Martin Weindel updated AXIS2-728:
---------------------------------
Attachment: fault-patch.txt
Patch for org.apache.axis2.description.AxisService2OM (core module).
The changed code remembers all fault messages already generated and suppresses redundant fault message printing.
> Generated WSDL contains duplicate fault messages if multiple operations define some fault
> -----------------------------------------------------------------------------------------
>
> Key: AXIS2-728
> URL: http://issues.apache.org/jira/browse/AXIS2-728
> Project: Apache Axis 2.0 (Axis2)
> Type: Bug
> Components: core
> Versions: 1.0
> Reporter: Martin Weindel
> Attachments: axis2-services-xxx.wsdl, demo-fault.wsdl, fault-patch.txt
>
> To reproduce the bug, use the attached file demo-fault.wsdl to generate a AAR with WSDL2Java.
> The defined service contains a port type with two methods. Both methods can throw the same fault ("DemoFault" called in the example). If you now deploy this service and retrieve the WSDL from the axis2 server, it contains two duplicate definitions of the fault message (see attached file axis2-services-xxx.wsdl).
> This causes several client code generators to fail with errors.
> I have added a patch for org.apache.axis2.description.AxisService2OM fixing this behaviour.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira