【问题标题】:WSDL customization - binding nameWSDL 定制 - 绑定名称
【发布时间】:2015-03-05 08:04:08
【问题描述】:

我想知道部署以下 WebService 时 WSDL 文件中的“绑定”名称是什么:

@WebService (name="LogService", serviceName="LogWebService")  
 public class LogServiceImpl 
 {    
 public void log(String msg) {       
 System.out.println(msg);    
 } 
 }

据我所知应该是SIB + "Port" +"Binding",即LogServiceImplPortBinding,因为中没有出现"portname" @WebService 注释。否则(如果出现)它将是“端口名”+“绑定”。有人说虽然在这种情况下“绑定”名称是“名称”+“绑定”,即LogServiceBinding,因为“名称”出现在注释中。什么是正确的?在哪个教程或规范中描述了这种定制?

【问题讨论】:

    标签: web-services soap wsdl jax-ws


    【解决方案1】:

    我猜应该是这样的:serviceName+"SoapBinding" 所以在这种情况下:LogWebServiceSoapBinding

    也许此链接将帮助您了解“名称”和“服务名称”之间的区别 http://docs.oracle.com/javaee/5/api/javax/jws/WebService.html

    但更好的了解方法是测试!所以尝试部署此服务并检查 wsdl 中的绑定名称。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-03-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-09-01
      • 1970-01-01
      相关资源
      最近更新 更多