JAX-WS
The JAX-WS set of packages and classes is the successor to the Java API for XML-based RPC (JAX-RPC), a technology for making remote procedure calls from one Java object to another over the Internet. The following codes are on JDK6 7 JDK8. ------------------------------------- //a Service Endpoint Interface package com.jaxws; import javax.jws.*; import javax.jws.soap.*; import javax.jws.soap.SOAPBinding.*; @WebService @SOAPBinding(style = Style.RPC) public interface TestServer { @WebMethod double getTestValue(double input); @WebMethod String getTime(); } ------------------------------------- //a Service Implemmentation Bean package com.jaxws; import java.util.*; import javax.jws.*; @WebService(endpointInterface = "com.jaxws.TestServer") public class TestServerImpl implements TestServer { @Override public double getTestValue(double input) { ...