简体   繁体   English

如何阐明引用现有XSD的生成文档

[英]How to have enunciate generate documentation referencing existing xsd

I am using enunciate 2.6.0 to generate documentation for jax-rs services. 我正在使用enunciate 2.6.0为jax-rs服务生成文档。 For 1 method I am using a custom MessageBodyWriter to serialize to xml. 对于1种方法,我使用自定义MessageBodyWriter序列化为xml。 I have an xsd file describing the response. 我有一个描述响应的xsd文件。 Is it possible to point enunciate to that schema doc? 是否可以指出该模式文档? By default, enunciate generates an ns0.xsd that is basically empty. 默认情况下,ununciate生成一个基本上为空的ns0.xsd。

This page in the wiki seems describes the ability to configure existing schema. Wiki中的此页面似乎描述了配置现有架构的能力。 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. 我已对其进行配置,以便它可以找到本地xsd文件(如果找不到它,则构建将失败),但是生成的文档仍未引用它。 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. 我相信问题在于,从方法和xml类型返回的对象似乎没有任何关系。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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