<%@ page import="java.util.*, org.apache.axis.client.Call, org.apache.axis.client.Service, org.apache.axis.encoding.XMLType, org.apache.axis.utils.Options, javax.xml.namespace.QName, javax.xml.rpc.ParameterMode" %> <% String sRetrieve = request.getParameter("retrieve"); String sReturn = ""; String sMonth = "3"; String sYear = "2004"; //This is the URL of the webservice on my PC String sEndpoint = "http://localhost:8080/axis/services/MyService"; Service service = new Service(); Call call = (Call) service.createCall(); call.removeAllParameters() ; call.setReturnType( org.apache.axis.Constants.XSD_STRING ); call.setTargetEndpointAddress( new java.net.URL( sEndpoint ) ); call.setOperationName(new QName("MyService", "testOperationName") ); call.addParameter("in0", org.apache.axis.Constants.XSD_STRING, javax.xml.rpc.ParameterMode.IN); call.addParameter("in1", org.apache.axis.Constants.XSD_STRING, javax.xml.rpc.ParameterMode.IN); call.addParameter("in2", org.apache.axis.Constants.XSD_STRING, javax.xml.rpc.ParameterMode.IN); sReturn = (String) call.invoke( new Object[] { sMonth, sYear, "EST" } ); %> <%= sReturn %>