cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julio Arias <julio.ar...@rbxglobal.com>
Subject Re: Exposing methods
Date Fri, 13 Jul 2007 03:40:59 GMT
Hi Jim,

Thanks I found that property for the @WebMethod annotation too and it  
works fine. But is this a normal behavior to expose everything in the  
implementor, I thought it would only expose the methods on my interface.

On Jul 12, 2007, at 9:05 PM, Jim Ma wrote:

> Hi Julio,
>
> I think you can add @WebMethod(exclude=true)  for the setter method.
>
>    @WebMethod (exclude=true)
>     setUserManager(UserManager userManager)
>
> Cheers
>
> Jim
>
>
> Julio Arias wrote:
>> 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: julio.arias@rbxglobal.com | www.rbxglobal.com
>> ---------------------------------------------------------------------
>>
>>




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: julio.arias@rbxglobal.com | www.rbxglobal.com
---------------------------------------------------------------------


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message