RemoteAPI SelectRowsCommand CommandException: Not Found | bront | 2016-04-01 06:28 |
Status: Closed | ||
Jon, I think I have all the necessary classes... maybe. I am running it from my local machine hitting a remote dev server, would that matter? thanks, bront package edu.uky.kcr.ctrp; import java.io.IOException; import java.util.Map; import org.labkey.remoteapi.CommandException; import org.labkey.remoteapi.Connection; import org.labkey.remoteapi.query.GetQueriesCommand; import org.labkey.remoteapi.query.GetQueriesResponse; import org.labkey.remoteapi.query.SelectRowsCommand; import org.labkey.remoteapi.query.SelectRowsResponse; public class LabKeyFiles { public static void queryFiles() { Connection cn = new Connection("https://ourdevserver.edu, "xxx", "yyy"); SelectRowsCommand cmd = new SelectRowsCommand("labkey", "list.gender"); try { SelectRowsResponse response = cmd.execute(cn, "/Testing/"); } catch (IOException | CommandException e) { e.printStackTrace(); } } } |
||