- A SOAP service can be any Java class. It does not need to
know anything about SOAP.
- The methods' arguments must be Serializable.
package soaptest;
public class CalcService {
public int add(int p1, int p2) {
return p1 + p2;
}
public int subtract(int p1, int p2) {
return p1 - p2;
}
}
- This file (CalcService.java) is compiled and the .class is
moved to
<TOMCAT_HOME>/webapps/soap/WEB-INF/classes/soaptest/