import org.apache.axis.*;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import java.net.*;

public final class SoapHang
{
	public final static void main(String args[])
	{
		String url = "http://67.129.159.33:1025/soap/IOBISMSClient";
		try
		{
			Service foo = new Service();
      	Call call = (Call) foo.createCall();

      	call.setTargetEndpointAddress(new java.net.URL(url));
      	call.setOperationName(new javax.xml.namespace.QName("urn:uOBI_Intf-IOBISMSClient", "GetVersion"));
      	call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);
      	String reply = (String)call.invoke(new Object[] {});
			System.out.println("Version: " + reply);
    	}
    	catch (Exception e)
    	{
      	System.err.println(e.toString());
    	}
	}
}
