相关疑难解决方法(0)

从java class\source生成WSDL

我有一个包含"逻辑"类的包(如CheckAuthenticationDataLogic.java,GetVocabularyiesLogic.java).另一个类--ApiService.java用于生成wsdl.ApiService.java有很多像这样的方法:

/**
   * Check authentication data.
   * @param contractNumber - number of contract.
   * @param msisdn - msisdn.
   * @param superPassword - super password.
   * @return result of authentication.
   */
  @WebMethod
  @WebResult(name = "result")
  public CheckAuthenticationDataResult checkAuthenticationData(@WebParam(name = "contractNumber")
                                                               final String contractNumber,
                                                               @WebParam(name = "msisdn")
                                                               final String msisdn,
                                                               @WebParam(name = "superPassword")
                                                               final String superPassword) {
    return runLogic(new CheckAuthenticationDataLogic(contractNumber, msisdn, superPassword));
  }
Run Code Online (Sandbox Code Playgroud)

如你所见它只是一个代理方法...所以我想避免两次做同样的工作,并从逻辑类生成WSDL而不编写ApiService.java.是否存在用于此目的的任何工具或库?

java wsdl

10
推荐指数
1
解决办法
6万
查看次数

标签 统计

java ×1

wsdl ×1