import jp.dbcls.togows.soap.*;

public class KeggGetLinkdbBetweenDatabases {

    public static void main(String[] args) {
        try {
            String from_db = "eco"; 
            String to_db = "pathway"; 
            int offset = 1; 
            int limit = 100; 

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

            LinkdbRelation[] result = stub.keggGetLinkdbBetweenDatabases(from_db, to_db, offset, limit);
            for (int i = 0; i < result.length; i++) {
                System.out.println("entry_id1: " + result[i].getEntry_id1());
                System.out.println("entry_id2: " + result[i].getEntry_id2());
                System.out.println("type: " + result[i].getType());
                System.out.println("path: " + result[i].getPath());
            }

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