JAX-WS 的注释端点位置

发布于 2024-09-28 11:03:41 字数 537 浏览 2 评论 0原文

确实存在一个特定的注释来定义端点的地址。 其实我想把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.

does exist a specific annotation to define the address of the endpoint.
In fact, I want to remove the attribute address in the SPring file and move the annotation directly in the impl. class.

Current:

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

@WebService
public interface DataManagerService

I would like to change to (if possible) ...

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

@WebService
@EndPointAddress ("/datamanager/v1.0")
public interface DataManagerService

Many thanks, in advance,
Christophe P.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

第几種人 2024-10-05 11:03:41
@WebService(portName = "PortTypeName", serviceName = "ServiceName", targetNamespace = "http://www.namespace.com", wsdlLocation = "META-INF/wsdlname.wsdl", endpointInterface = "com.package.service.PortTypeName")
@WebService(portName = "PortTypeName", serviceName = "ServiceName", targetNamespace = "http://www.namespace.com", wsdlLocation = "META-INF/wsdlname.wsdl", endpointInterface = "com.package.service.PortTypeName")
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文