首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >有没有办法用JAX-WS从Javadoc生成WSDL文档?

有没有办法用JAX-WS从Javadoc生成WSDL文档?
EN

Stack Overflow用户
提问于 2009-11-17 10:18:36
回答 1查看 12.3K关注 0票数 18

我希望有某种扩展可以做到这一点(尽管我认为我的希望是愚蠢的乐观)。

代码语言:javascript
复制
   /**
     * <p>
     * Gets the {@link ResultObject} given the identifier. The following
     * fields are not available for some users and will contain a null value:
     * </p>
     * 
     * <ul>
     * <li>{@code resultObject.comment}</li>
     * <li>{@code resultObject.anotherObject.actionById}</li>
     * <li>{@code resultObject.anotherObject.actionByName}</li>
     * </ul>
     * 
     * <p>
     * The {@code daysInPurgatory} value will be {@code -1} when not
     * applicable
     * </p>
     * 
     * @param requestUser
     *            the user initiating the request
     * @param identifier
     *            the id of the ResultObject
     * @return the {@link ResultObject} or {@code null} if none exists
     * @throws SomeException
     *             if the {@code identifier} is {@code null}
     */
    @WebMethod
    @WebResult(name = "resultObject")
    public ResultObject getResultObjectById(
     @WebParam(name = "RequestUser", header = true, partName = "RequestUser") final String requestUser,
     @WebParam(name = "identifier") final Long identifier)
     throws SomeException;

谢谢,LES2

EN

回答 1

Stack Overflow用户

发布于 2012-11-20 23:40:33

在一个项目中,我们发布了很多WSDL。对于每个Web服务,我们都公开了一个WS方法"getDocumentationURL()“。此方法返回指向从SEI生成的JavaDoc的链接。JavaDoc被放置在可访问内部网服务器上。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/1746199

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档