OpenVMS Source Code Demos

simpleservice

//==================================================================================
// title : SimpleService.java (SOAP-based web service for Apache AXIS2)
// author: Neil Rieck
// notes : 1) This is the service implementation class
//         2) the "ss" prefix means "simple service"
//	   3) the wsdl will publish default method parameters (param0, param1, etc.)
//==================================================================================
public class SimpleService {
	//
	//	ssAdd
	//
	public double ssAdd(		double ssValue1, double ssValue2) {
		return (ssValue1 + ssValue2);
	}
	//
	//	ssSubtract
	//
	public double ssSubtract(	double ssValue3, double ssValue4) {
		return (ssValue3 - ssValue4);
	}
	//
	//	ssEcho
	//
	public String ssEcho(		String ssValue5) {
		return ("You sent: "+ ssValue5);
	}
}

home Back to Home
Neil Rieck
Waterloo, Ontario, Canada.