Announcement Announcement Module
Collapse
No announcement yet.
Apache CXF and Spring MVC Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Apache CXF and Spring MVC

    Hello.

    How can I merge CXF and Spring?

    I already finished to configure Apache CXF but my problem is i don't know how to use it by using Spring controller.

    package com.company.auth.service

    Code:
    @WebService
    public interface AuthService {
        Employee getEmployee(@WebParam(name="gid") String gid);
    }
    Code:
    @WebService(endpointInterface = "com.company.auth.service.AuthService", 
    serviceName = "corporateAuthService")
    public class AuthServiceImpl implements AuthService {
    
    	public Employee getEmployee(String gid) {
    		EmployeeDao dao = new EmployeeDao();
    		return dao.getEmployee(gid);
    	}
    
    }

  • #2
    With CXF your webservice implementations are (may be) Spring beans. Just read: http://cxf.apache.org/docs/writing-a...th-spring.html.

    regards
    Grzegorz Grzybek

    Comment

    Working...
    X