hello...
i have written a client programme for calling webservices...method. ..and kept axix.jar and soap.jar..in the classpath but..the programme is not compling saying...can't axcess javax.xml.rpc.call;
please tell what might be the problem..
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;
public class TestClient {
public static void main(
String [] args) {
try {
String endpoint = "http://100.0.1.1/Apple/OpBilling/Billing.asmx";
// "http://ws.apache.org:5049/axis/services/echo";
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpoint) );
call.setOperationName(new QName("http://tempuri.org/", "ChargeUser"));
//targetNamespace=
http://tempuri.org/ String ret = (String) call.invoke( new Object[] { "9866655320","1","sebtain","imi@123" } );
System.out.println("sending four parameters mobileno,rs 1,sebtain,password...output is "+ret);
} catch (Exception e) {
System.err.println(e.toString());
}
}
}
Thanks to all...