SAP NetWeaver Application Server for Java
How to Create a Web Service from a Java Class
Using this document anyone can easily create and test a Web service from a java class in SAP NetWeaver; you just have to fellow these simple steps.