axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Minh Duong" <>
Subject RE: Newbie trying TestClient: getting
Date Thu, 13 Jun 2002 15:44:29 GMT
Check on your application server (Tomcat, BEA Logic, etc).  I get that error when I forget
to start Tomcat.  One way is browse your server i.e. (http://localhost:8080/axis).  As for, it's been down recently for me for some unknown reason.  

	-----Original Message----- 
	From: runstein [] 
	Sent: Wed 6/12/2002 2:12 PM 
	Subject: Newbie trying TestClient: getting

	I am fairly new to Java and brand-spankin new to Axis.  I have been having
	trouble getting the following code to run.  I keep getting "Error : ConnectionRefused".  I'm assuming that the
	error is coming from the address assigned to endpoint.  I've tried the
	address shown as well as
	I'm sure I'm doing something stupid, but I can't figure out what the problem
	is.  Any help is most appreciated.
	import org.apache.axis.client.Call;
	import org.apache.axis.client.Service;
	import javax.xml.rpc.namespace.QName;
	public class AAxis{
	public static void main(String args[]){
	try {
	String endpoint = "";
	Service service = new Service();
	Call call = (Call)service.createCall();
	call.setOperationName(new QName("", "echoString"));
	String ret = (String)call.invoke(new Object[] {"Hello"});
	System.out.println("sent hello and got back " + ret);
	catch (Exception e){
	System.out.println("Errored :" + e.toString());
	Todd Runstein
	503-635-4016 exten 1283

View raw message