If you are using JDK 6, you can use JAX-WS 2 and its annotations: @WebService and @WebMethod.But if you are using older versions, you can use Axis (from Apache). Google for sample code!