import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;
import org.w3c.dom.*;

public class CheckEligibilityClient
{	
	public static void main(String [] args)
	{
		try {
				String ret ="";

				String endpoint ="http://localhost/axis/services/CheckEligibility";

				String szCardNo="5256681000341211";
				String  szAccountNo="5256681000341211";
				String  szProduct="201";

				Service  service = new Service();
				Call     call    = (Call) service.createCall();

				call.setTargetEndpointAddress( new java.net.URL(endpoint) );
				call.setOperationName(new QName("http://soapinterop.org/", "CheckOne") );
				call.addParameter("szCardNo",org.apache.axis.Constants.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
				call.addParameter("szAccountNo",org.apache.axis.Constants.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
				call.addParameter("szProduct",org.apache.axis.Constants.XSD_STRING,javax.xml.rpc.ParameterMode.IN);

				call.setReturnType(org.apache.axis.Constants.XSD_STRING );

				System.out.println("Before Invoking Service");
				ret = (String) call.invoke(new Object[] { szCardNo,szAccountNo,szProduct });

				System.out.println("ret string "+ ret);

			}catch (Exception e)
					{
					   System.err.println(e.toString());
			}

	}
}
