import jp.dbcls.togows.soap.*;

public class KeggSearchCompoundsByComposition {

    public static void main(String[] args) {
        try {
            String composition = "C7H10O5"; 

            TogowsKeggService service = new TogowsKeggServiceLocator();
            TogowsKeggPort stub = service.getTogowsKeggPort();

            String[] result = stub.keggSearchCompoundsByComposition(composition);
            for (int i = 0; i < result.length; i++) {
                System.out.println(result[i]);
            }

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
