/**	
 * This is the simplest Java MOBY client you can have.  A fully documented version
 * is available in the TestRequest class, with all the proper error checking. 
 */

import org.biomoby.client.*;
import org.biomoby.shared.*;
import org.biomoby.shared.data.*;

public class HelloMOBY {
    public static void main(String[] args) throws Exception{

        Central worker = new CentralImpl();
        MobyService templateService = new MobyService("MOBYSHoundGetGenBankff");
        MobyService[] validServices = worker.findService(templateService);

	MobyRequest mr = new MobyRequest(worker);
	mr.setService(validServices[0]);
	mr.setInput(new MobyDataObject("NCBI_gi", "111076"));
	System.out.println(mr.invokeService().toString());
    }
}
