= Java/ApacheCXF = http://cxf.apache.org/ Apache CXF is an open source services framework. CXF helps you build and develop services using frontend programming APIs, like JAX-WS and JAX-RS. These services can speak a variety of protocols such as SOAP, XML/HTTP, RESTful HTTP, or CORBA and work over a variety of transports such as HTTP, JMS or JBI. == Sample == Structure: {{{ . ├── pom.xml ├── src │   └── main │   ├── java │   │   └── com │   │   └── test │   │   ├── Calculator.java │   │   └── ICalculator.java │   └── webapp │   ├── index.html │   └── WEB-INF │   ├── applicationContext.xml │   └── web.xml └── target }}} pom.xml {{{#!highlight xml 4.0.0 com.test cxfSpringTest 0.1 war org.apache.cxf cxf-rt-core 2.4.1 org.apache.cxf cxf-bundle-jaxrs 2.4.1 org.apache.cxf cxf-rt-frontend-jaxws 2.4.1 }}} src/main/java/com/test/Calculator.java {{{#!highlight java package com.test; public class Calculator implements ICalculator { public Calculator() { System.out.println("Calculator created "); } public long add(long num1, long num2) { return (num1 + num2); } public long subtract( long num1, long num2 ){ return num1 - num2; } } }}} src/main/java/com/test/ICalculator.java {{{#!highlight java package com.test; import javax.jws.WebService; @WebService public interface ICalculator { public long add(long num1 , long num2 ); public long subtract(long num1, long num2 ); } }}} src/main/webapp/WEB-INF/applicationContext.xml {{{#!highlight xml }}} src/main/webapp/WEB-INF/web.xml {{{#!highlight xml CXFServlet org.apache.cxf.transport.servlet.CXFServlet CXFServlet /* org.springframework.web.context.ContextLoaderListener Spring org.springframework.web.servlet.DispatcherServlet 0 }}} src/main/webapp/index.html {{{#!highlight xml teste aaaa .... }}} http://localhost:8080/cxfSpringTest-0.1/services http://localhost:8080/cxfSpringTest-0.1/