我想用這個工具包來測試拉力賽的webservice api。我們有一個拉力賽的內部設置。我的代碼如下所示:集會休息api java工具包sslpeerunverifiedexception:同行未驗證
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);
....
之前落色行「......」生成一個例外:javax.net.ssl.SSLPeerUnverifiedException:同行不被認證。 當我手動訪問這樣的web服務上的瀏覽器工作正常,除了我注意到有證書錯誤: 「HTTPS://rally/slm/webservice/1.29/defect/10509982」
有沒有人有這樣的經歷? 謝謝。
工程。非常感謝。 – user2008162