Hi Julio,

I am not sure that I get you point.
Do you mean that you don't want to specify the endpoint interface in the implementor in the annotation ?

Even the SEI ( Service Endpoint Interface) is generated by wsdl , you still need to specify it in the implementor class.

Your Endpoint Spring description is not mention the wsdlLocation so CXF will try to build the Service Model from java class, and the WebService annotation is very important for the Service Model building.

Can you tell me more about you concern of hiding this method (endpointInterface = *) ?

BTW
Here are some notes about the Service Model
http://cwiki.apache.org/CXF20DOC/cxf-architecture.html#CXFArchitecture-TheServiceModel

Cheers,

Willem.

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: [EMAIL PROTECTED] | www.rbxglobal.com
---------------------------------------------------------------------


Reply via email to