public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		System.out.println("Read entreprises...");
		List<IndexName> entrepriseIndex = readFile("entreprise.txt");		
		System.out.println("Read persons...");
		List<IndexName> personIndex = readFile("person.txt");
		
		if(entrepriseIndex != null && personIndex != null)
		{
			try {
				SoapServer service;
				do
				{
					service = getService(sc);
				} while(service == null);
				
				String option;
				do
				{
					option = getOptionMenu(sc);
					if(option.equals("1"))
					{
						System.out.println("Veuillez saisir le nom d'une entreprise :");
						subMenu(sc, entrepriseIndex, service);
					}
					else if(option.equals("2"))
					{
						System.out.println("Veuillez saisir le nom d'une personne :");
						subMenu(sc, personIndex, service);
					}
				} while(!option.equals("0"));
			} catch (MalformedURLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			} catch (Fault e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		
		System.out.println("Bye");
	}