当前位置: 动力学知识库 > 问答 > 编程问答 >

java - How to hide interface methods in the web service when using @WebService's `endpointInterface` attribute?

问题描述:

Is there a way to prevent a method from an interface used in @WebService's endpointInterface attribute to be exposed in the web service? I'm using the endpointInterface as that seems to be the only way to make the service work on JBoss with Metro, not doing so results in a:

javax.xml.ws.WebServiceException: Undefined port type

网友答案:

Tried annotating the methods you don't want to be exposed as @WebMethod(exclude = true)?

分享给朋友:
您可能感兴趣的文章:
随机阅读: