以任何方式产生WSDL文件,如果是的话,为什么不试与贾克斯-WS?
-
20-09-2019 - |
题
我希望一个扩展某种形式提供,不会这样(尽管我想,我的希望是愚蠢乐观的).
/**
* <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
解决方案
你可以看看 阐明.这有可能使用 这是家插件 产生HTML静态的文件如果是的话,为什么不试的评论意见。这适用于香皂(即贾克斯-WS)和其余部分(即贾克斯-RS)终结点。
有趣的读取:
- https://github.com/stoicflame/enunciate/wiki/Documentation-Only
- http://raibledesigns.com/rd/entry/my_experience_with_java_rest
生产的例子:
其他提示
你不是在寻找一种方式来生成WSDL文档(请参阅的Javadoc <借助生成WSDL文档只有一个/ A>线程)但是,AFAIK,没有标准强> JAX-WS这样做的方式。
现在,也许看一下在 JBWS-1850 提到的JBoss专有注释@Documentation
在部分生成jaxws:binding
工件href="http://java.sun.com/webservices/docs/2.0/jaxws/customizations.html#2.9_Javadoc_customization" rel="noreferrer"> 2.9的Javadoc定制一>使用Java的> WSDL方法时也是如此。这不完全是你问什么,但它可能给你一些想法。
在任何情况下,我想这将需要提供自己WSDLGeneratorExtension
延长wsgen
和产生所希望的WSDL。
在一个项目中,我们发表了很多的WSDL。对于每一个Web服务我们已经露出了WS法“getDocumentationURL()”。这种方法提供回链接从SEI生成的Javadoc。的JavaDoc是可访问的企业内部网服务器上进行。
不隶属于 StackOverflow