You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2007/10/22 20:02:50 UTC

[jira] Commented: (CXF-1127) JAXB Data Binding Generates Duplicate Fault Elements in Generated WSDL

    [ https://issues.apache.org/jira/browse/CXF-1127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536771 ] 

Daniel Kulp commented on CXF-1127:
----------------------------------

I think I'd need to see the full interface and the code for the Exceptions. 

I tried it here and I'm not seeing any duplicate elements.   It might be a namespace issue where the faults are in different namespaces from the types or something and I'd like to see all the annotations so I can figure out which namespaces are being used where.


> JAXB Data Binding Generates Duplicate Fault Elements in Generated WSDL
> ----------------------------------------------------------------------
>
>                 Key: CXF-1127
>                 URL: https://issues.apache.org/jira/browse/CXF-1127
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>    Affects Versions: 2.0.2
>            Reporter: Ronald Pieterse
>
> In my service I have 6 calls that can throw 3 exceptions each. In the generated wsdl file the exceptions are all duplicated, times the number of methods. In my case that will be 6 * 3 exception declarations in my wsdl.
> Here's an example of a service method (they all look alike so I did just one):
> @WebResult(name = "databaseFields")
> public DatabaseField[] getDatabaseFields(@WebParam(name = "authInfo") AuthInfo authInfo, 
>                                                                               @WebParam(name = "databaseName") String databaseName) 
> throws InvalidAuthInfoException, InvalidInputException, TripolisUnknownException;
> Here's a snippet from the generated wsdl:
> <xsd:schema xmlns:ns0="http://api.tripolis.com/" xmlns:tns="http://exceptions.api.tripolis.com/" targetNamespace="http://exceptions.api.tripolis.com/" attributeFormDefault="unqualified" elementFormDefault="unqualified">
> <xsd:element name="InvalidAuthInfoException" type="ns0:invalidAuthInfoFault" nillable="true"/>
> <xsd:element name="TripolisUnknownException" type="ns0:tripolisUnknownFault" nillable="true"/>
> <xsd:element name="InvalidInputException" type="ns0:invalidInputFault" nillable="true"/>
> <xsd:element name="InvalidAuthInfoException" type="ns0:invalidAuthInfoFault" nillable="true"/>
> <xsd:element name="TripolisUnknownException" type="ns0:tripolisUnknownFault" nillable="true"/>
> <xsd:element name="InvalidInputException" type="ns0:invalidInputFault" nillable="true"/>
> <xsd:element name="InvalidAuthInfoException" type="ns0:invalidAuthInfoFault" nillable="true"/>
> ...
> <xsd:element name="InvalidAuthInfoException" type="ns0:invalidAuthInfoFault" nillable="true"/>
> <xsd:element name="TripolisUnknownException" type="ns0:tripolisUnknownFault" nillable="true"/>
> <xsd:element name="InvalidInputException" type="ns0:invalidInputFault" nillable="true"/>
> </xsd:schema>
> This bug might be the same as https://issues.apache.org/jira/browse/CXF-745 that was presumed to be fixed.
> Am I doing something wrong here? Or was the bug never fixed?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.