/*******************************************************************************
 * Licensed Materials - Property of IBM
 *  
 * com.ibm.j2c.cheatsheet.content
 *  
 * Copyright IBM Corporation 2004. All Rights Reserved. 
 * 
 * Note to U.S. Government Users Restricted Rights:  Use, duplication or disclosure restricted by GSA ADP  Schedule Contract with IBM Corp. 
 *******************************************************************************/
/*
 * Created on Aug 30, 2004
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package sample.cics;
import sample.cics.data.*;

/**
 * @author ivyho
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class TestCustomer {

	public static void main(String[] args) {
		
		try {
			
			
			CustomerInfo input = new CustomerInfo();
			input.setCustomerNumber("12345");
		
			CustomerImpl proxy = new CustomerImpl();
			CustomerInfo output = proxy.getCustomer(input);
			System.out.println("\nCustomerNo:"+output.getCustomerNumber()+"\ncustomer First Name:"+output.getFirstName()+"\ncustomer Last Name:"+ output.getLastName()+ "\nAddress:" +output.getStreet()+" \nCity:" + output.getCity()+" \nCountry:"+output.getCountry() +" \nphone:"+output.getPhone());
			
				
			 input.setCustomerNumber("44444");
		
			 proxy = new CustomerImpl();
			 output = proxy.getCustomer(input);
					
			 System.out.println("\nCustomerNo:"+output.getCustomerNumber()+"\ncustomer First Name:"+output.getFirstName()+"\ncustomer Last Name:"+ output.getLastName()+ "\nAddress:" +output.getStreet()+" \nCity:" + output.getCity()+" \nCountry:"+output.getCountry() +" \nphone:"+output.getPhone());
				
			
		}catch (Exception e)
		{
			e.printStackTrace();
		}
		
		
		
		
	}
}

