views:

185

answers:

1

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

+1  A: 

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

Bozho
Yes, but even those not annotated are exposed.
Fabian Steeg
check my update. sorry for not being precise.
Bozho
Perfect, thanks a lot!
Fabian Steeg