OK, may be something to do with figuring out what T is in List<T>, I thought it was all working fine after Francesco submitted few issues to do with the WADL auto-generation awhile back. I'll try to have a look before 3.0.5 gets out but I'm not sure yet I'll have time - I'll investigate either way

Thanks, Sergey
On 21/04/15 21:58, namdets wrote:
Sergey,

Thanks for getting back to me!

I tried setting the linkAnyMediaTypeToXmlSchema property on my WadlGenerator
like so:


     <jaxrs:server id="services" address="/">
         <jaxrs:serviceBeans>
             <ref bean="companyRS"/>
         </jaxrs:serviceBeans>
         <jaxrs:providers>
             <bean class="org.apache.cxf.jaxrs.model.wadl.WadlGenerator">
                 <property name="linkAnyMediaTypeToXmlSchema" value="true"/>
             </bean>
             <bean
class="com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider"/>
         </jaxrs:providers>
     </jaxrs:server>

Unfortunately this did not resolve the issue, is this the correct way?

Some additional information:

My DTOs are marked with @XmlRootElement as this has been required in the
past to get any grammars included in the wadl for application/json media
types, but I have tried removing this also.

The wadl generation is complete with grammars if I put my resource methods
directly in the FooRS instead of(or in addition to) the AbstractRS without
making any other changes.







--
View this message in context: 
http://cxf.547215.n5.nabble.com/WADL-Grammar-section-lost-for-generic-service-class-tp5755870p5756379.html
Sent from the cxf-user mailing list archive at Nabble.com.


Reply via email to