cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-4924) Many docLocation for a server address
Date Wed, 27 Mar 2013 09:41:15 GMT

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

Sergey Beryozkin commented on CXF-4924:
---------------------------------------

If WADL has multiple top-level resources then multiple root resource files have to be generated.
For example, I've verified that processing

http://svn.apache.org/repos/asf/cxf/trunk/tools/wadlto/jaxrs/src/test/resources/wadl/multipleResources.xml

will produce 2 separate files.

You can still have 3 separate files, but imported into a master WADL like this:
http://svn.apache.org/repos/asf/cxf/trunk/tools/wadlto/jaxrs/src/test/resources/wadl/bookstoreResourceRef.xml

where an imported file looks like this

http://svn.apache.org/repos/asf/cxf/trunk/tools/wadlto/jaxrs/src/test/resources/wadl/bookstoreImportResultType.xml

or like this:

http://svn.apache.org/repos/asf/cxf/trunk/tools/wadlto/jaxrs/src/test/resources/wadl/singleResourceWithRefs.xml

so that it can be used independently to generate a root resource or have it imported into
a higher-level one

Can you experiment with the above options ?

I'm not sure concatenating "classpath:/wadl/s1.xml classpath:/wadl/s2.xml classpath:/wadl/s3.xml"
into a single representation can work well
                
> Many docLocation for a server address
> -------------------------------------
>
>                 Key: CXF-4924
>                 URL: https://issues.apache.org/jira/browse/CXF-4924
>             Project: CXF
>          Issue Type: Sub-task
>          Components: JAX-RS
>            Reporter: Christophe S
>            Priority: Minor
>             Fix For: 2.4.1, 2.7.3
>
>
> It would be nice to support many files for the docLocation as we can have many beans
in a service.
> For example, I have 3 WADL services at the same address. WADL2JAVA produces 3 beans/services.
I would like put these 3 beans at the same address and use the 3 WADL service files to produce
the documentation. 
> For now I have to have fake addresses to do this use case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message