import jp.dbcls.togows.soap.*;

public class DdbjBlastSearchSimple {

    public static void main(String[] args) {
        try {
            String program = "blastp"; 
            String database = "SWISS"; 
            String query = "MSSRIARALALVVTLLHLTRLALSTCPAACHCPLEAPKCAPGVGLVRDGCGCCKVCAKQL"; 

            TogowsDdbjBlastService service = new TogowsDdbjBlastServiceLocator();
            TogowsDdbjBlastPort stub = service.getTogowsDdbjBlastPort();

            String result = stub.ddbjBlastSearchSimple(program, database, query);
            System.out.println(result);

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