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.