I am trying to use this toolkit to test Rally's webservice api. We have an internal setup of Rally. My code looks like this:
RallyRestApi restApi = new RallyRestApi (new URI("https://rally"), "userName", "password");
restApi.setApplicationName("Test");
restApi.setWsapiVersion(wsapiVersion);
String workspaceRef = new String("/workspace/11457676");
String projectRef = new String("/project/11457760");
String storyFormattedID = "US576";
QueryRequest storyRequest = new QueryRequest("HierarchicalRequirement");
storyRequest.setFetch(new Fetch("FormattedID","Name","Owner"));
storyRequest.setQueryFilter(new QueryFilter("FormattedID", "=", storyFormattedID));
storyRequest.setWorkspace(workspaceRef);
storyRequest.setProject(projectRef);
QueryResponse storyQueryResponse = restApi.query(storyRequest);
....
The lase line before "...." generate a exception: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated. When I manually access the webservice like this on browser works fine except I noticed there is Certificate Error: "https://rally/slm/webservice/1.29/defect/10509982"
Does anyone have experience with this? Thanks.