简体   繁体   中英

How to have enunciate generate documentation referencing existing xsd

I am using enunciate 2.6.0 to generate documentation for jax-rs services. For 1 method I am using a custom MessageBodyWriter to serialize to xml. I have an xsd file describing the response. Is it possible to point enunciate to that schema doc? By default, enunciate generates an ns0.xsd that is basically empty.

This page in the wiki seems describes the ability to configure existing schema. I have configured that so that it finds the local xsd file (the build fails if it cannot find it), but the generated documentation still does not reference it. I believe the problem is that there does not appear to be a tie from the object returned from the method and the xml type.

似乎关键是在idl模式配置值中使用默认名称空间,即使在运行时使用了“真实”名称空间。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM