Hi Julio, this should work. But sometimes it can happen if the CXF runtime can not load the endpoint class specified by endpointInterface = "com.rbx.test.webservices.UserWebService", in that case, CXF will use impl class (i.e., the UserWebServiceImpl ) to build a service model. And if this does happen, all the methods you defined in your impl class will get into your WSDL. So could you please check whether or not you have specified your endpointInterface correctly, for example, the package name etc.
Hope this helps, Jervis -----Original Message----- From: Julio Arias [mailto:[EMAIL PROTECTED] Sent: 2007?7?13? 7:08 To: [email protected] Subject: Exposing methods The dependencies setters from my service impl are getting expose in the WSDL even though I'm specifying the endpoint interface in the implementor. How can I hide this methods? I have the following code and config: + UserWebService.java @WebService(name = "UserService") public interface UserWebService { @WebMethod User getUserById(@WebParam(name = "id") Long id); } + UserWebServiceImpl.java @WebService(endpointInterface = "com.rbx.test.webservices.UserWebService", name = "UserService") public class UserWebServiceImpl implements UserWebService { private UserManager userManager; public void setUserManager(UserManager userManager) { this.userManager = userManager; } public User getUserById(Long id) { return userManager.getUser(id); } } + Endpoint config: <jaxws:endpoint id="userService" address="/UserService"> <jaxws:implementor> <bean class="com.rbx.test.webservices.UserWebServiceImpl"> <property name="userManager" ref="userManager"/> </bean> </jaxws:implementor> </jaxws:endpoint> Julio Arias Java Developer Roundbox Global : enterprise : technology : genius --------------------------------------------------------------------- Avenida 11 y Calle 7-9, Barrio Amón, San Jose, Costa Rica tel: 404.567.5000 ext. 2001 | cell: 11.506.849.5981 email: [EMAIL PROTECTED] | www.rbxglobal.com --------------------------------------------------------------------- ---------------------------- IONA Technologies PLC (registered in Ireland) Registered Number: 171387 Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
