When you created the service, what did you specify for the location (-l param of the Java2WSDL call)? If it is localhost, the client code is probably looking for the service on the same machine (not where it is running). Look in the XXXServiceLocator.java file and set the XXXaddress member accordingly.
Good luck, Gene > -----Original Message----- > From: Rosén Håkan [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 13, 2003 9:11 AM > To: '[EMAIL PROTECTED]' > Subject: Connection refused > > > Hi, > I have deployed a axis-service in Tomcat and written a small > java-client > that connects and calls methods in the service. > This works fine when I run the client on my local machine, > but when I try to > run it from another machine the connection is refused, > have I missed something here ? > > this is what I when running from a different machine > Exception in thread "main" AxisFault > faultCode: > {http://schemas.xmlsoap.org/soap/envelope/}Server.userException > faultSubcode: > faultString: java.net.ConnectException: Connection refused: connect > faultActor: > faultNode: > faultDetail: > {http://xml.apache.org/axis/}stackTrace: > java.net.ConnectException: > Connection refused: connect > at java.net.PlainSocketImpl.socketConnect(Native Method) > ..... > > > regards > /Håkan >