import java.net.MalformedURLException; import java.net.URL; import java.rmi.RemoteException; import javax.xml.namespace.QName; import javax.xml.rpc.ServiceException; import org.apache.axis.client.Call; import org.apache.axis.client.Service; public class HelloWorldClient { private static final String ENDPOINT = "http://localhost:1234/axis/HelloWorld.jws"; private static final String NAMESPACE = "http://soapinterop.org/"; private static final String OPERATION = "test"; public static void main(String[] args) throws ServiceException, MalformedURLException, RemoteException { Service service = new Service(); Call call = (Call)service.createCall(); call.setTargetEndpointAddress(new URL(ENDPOINT)); call.setOperationName(new QName(NAMESPACE, OPERATION)); String returnValue = (String)call.invoke(new Object[]{"toto"}); System.out.println(returnValue); } }