【问题标题】:Annotation endpoint Location for JAX-WSJAX-WS 的注释端点位置
【发布时间】:2011-04-28 14:19:58
【问题描述】:

确实存在一个特定的注释来定义端点的地址。 其实我是想把SPring文件中的属性地址去掉,直接在impl中移动注解。类。

当前:

jaxws:endpoint id="dataManagerEndPoint" implementor="#dataManagerService" address="/datamanager/v1.0"

@WebService 公共接口DataManagerService

我想改成(如果可能的话)...

jaxws:endpoint id="dataManagerEndPoint" implementor="#dataManagerService"

@WebService @EndPointAddress ("/datamanager/v1.0") 公共接口DataManagerService

非常感谢,提前, 克里斯托夫·P.

【问题讨论】:

    标签: spring annotations jax-ws cxf


    【解决方案1】:
    @WebService(portName = "PortTypeName", serviceName = "ServiceName", targetNamespace = "http://www.namespace.com", wsdlLocation = "META-INF/wsdlname.wsdl", endpointInterface = "com.package.service.PortTypeName")
    

    【讨论】:

      猜你喜欢
      • 2018-04-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-28
      • 1970-01-01
      相关资源
      最近更新 更多