You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "David Dossot (JIRA)" <ji...@apache.org> on 2012/08/08 03:25:09 UTC

[jira] [Created] (CXF-4458) WADL generator should support transformations

David Dossot created CXF-4458:
---------------------------------

             Summary: WADL generator should support transformations
                 Key: CXF-4458
                 URL: https://issues.apache.org/jira/browse/CXF-4458
             Project: CXF
          Issue Type: Wish
          Components: JAX-RS, JAXB Databinding
    Affects Versions: 2.6.1
            Reporter: David Dossot


I'm using an {{monospaced}}outTransformElements{{monospaced}} to configure some element transformations on {{monospaced}}org.apache.cxf.jaxrs.provider.JAXBElementProvider{{monospaced}}. It works perfectly fine but unfortunately the generated WADL doesn't reflect this transformation, leading to a discrepancy between the published and the actual API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CXF-4458) WADL generator should support transformations

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-4458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13431664#comment-13431664 ] 

Sergey Beryozkin commented on CXF-4458:
---------------------------------------

I think it can not be done. Effectively, we will need to completely customize the way JAXB generates the schemas, given that the transformation feature can affect the representation in many ways. In such cases, consider using jaxrs:server/@docLocation attribute which will point to a custom WADL document.
Save the document generated by default, modify the schema a bit and link to it from @docLocation. This approach also works for non-JAXB bindings
                
> WADL generator should support transformations
> ---------------------------------------------
>
>                 Key: CXF-4458
>                 URL: https://issues.apache.org/jira/browse/CXF-4458
>             Project: CXF
>          Issue Type: Wish
>          Components: JAX-RS, JAXB Databinding
>    Affects Versions: 2.6.1
>            Reporter: David Dossot
>
> I'm using an {{outTransformElements}} to configure some element transformations on {{org.apache.cxf.jaxrs.provider.JAXBElementProvider}}. It works perfectly fine but unfortunately the generated WADL doesn't reflect this transformation, leading to a discrepancy between the published and the actual API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CXF-4458) WADL generator should support transformations

Posted by "David Dossot (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-4458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Dossot updated CXF-4458:
------------------------------

    Description: I'm using an {{outTransformElements}} to configure some element transformations on {{org.apache.cxf.jaxrs.provider.JAXBElementProvider}}. It works perfectly fine but unfortunately the generated WADL doesn't reflect this transformation, leading to a discrepancy between the published and the actual API.  (was: I'm using an {{monospaced}}outTransformElements{{monospaced}} to configure some element transformations on {{monospaced}}org.apache.cxf.jaxrs.provider.JAXBElementProvider{{monospaced}}. It works perfectly fine but unfortunately the generated WADL doesn't reflect this transformation, leading to a discrepancy between the published and the actual API.)
    
> WADL generator should support transformations
> ---------------------------------------------
>
>                 Key: CXF-4458
>                 URL: https://issues.apache.org/jira/browse/CXF-4458
>             Project: CXF
>          Issue Type: Wish
>          Components: JAX-RS, JAXB Databinding
>    Affects Versions: 2.6.1
>            Reporter: David Dossot
>
> I'm using an {{outTransformElements}} to configure some element transformations on {{org.apache.cxf.jaxrs.provider.JAXBElementProvider}}. It works perfectly fine but unfortunately the generated WADL doesn't reflect this transformation, leading to a discrepancy between the published and the actual API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CXF-4458) WADL generator should support transformations

Posted by "David Dossot (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-4458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13431885#comment-13431885 ] 

David Dossot commented on CXF-4458:
-----------------------------------

Thanks for suggesting a workaround... until this wish comes true :)
                
> WADL generator should support transformations
> ---------------------------------------------
>
>                 Key: CXF-4458
>                 URL: https://issues.apache.org/jira/browse/CXF-4458
>             Project: CXF
>          Issue Type: Wish
>          Components: JAX-RS, JAXB Databinding
>    Affects Versions: 2.6.1
>            Reporter: David Dossot
>
> I'm using an {{outTransformElements}} to configure some element transformations on {{org.apache.cxf.jaxrs.provider.JAXBElementProvider}}. It works perfectly fine but unfortunately the generated WADL doesn't reflect this transformation, leading to a discrepancy between the published and the actual API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira