Thanks Bill..
This is what I did and failed ( It won't even get to the first line in the try block) , can you please suggest anything? Thanks so much..
1. I downloaded Axis into my tomcat/webapps/axis
2. set my classpath as
C:\axis\axis-1_4\lib\axis.jar;C:\axis\axis-1_4\lib\axis-ant.jar;C:\axis\axis-1_4\lib\commons-discovery-0.2.jar;C:\axis\axis-1_4\lib\commons-logging-1.0.4.jar;C:\axis\axis-1_4\lib\jaxrpc.jar;C:\axis\axis-1_4\lib\saaj.jar;C:\axis\axis-1_4\lib\wsdl4j-1.5.1.jar;
3. Went through check list for proper installation and confirmed that I have all required classes found..
4. The webservice url is
http://services.lpcorp.com/TestService/testservice.asmx and I use the following client to call..
package com.servicelane.helpers;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;
import org.apache.log4j.Category;
public class AxisClient {
private static Category message;
public
String getTestMath() {
String retString = "";
try {
message.info("about to call endpoint");
String endpoint = "http://services.lpcorp.com/TestService testservice.asmx";
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpoint) );
call.setOperationName("TestMath");
Integer i1 = new Integer(5);
Integer i2 = new Integer(9);
Integer ret = (Integer) call.invoke( new Object[] { i1, i2 } );
retString = ret.toString();
} catch (Exception e) {
message.info("Exception in trying to getTestmath is :" + e);
}
return retString;
} //end of local method
} // end of class