{"action":"created","issue":{"url":"https://api.github.com/repos/RallyTools/RallyRestToolkitForJava/issues/18","labels_url":"https://api.github.com/repos/RallyTools/RallyRestToolkitForJava/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/RallyTools/RallyRestToolkitForJava/issues/18/comments","events_url":"https://api.github.com/repos/RallyTools/RallyRestToolkitForJava/issues/18/events","html_url":"https://github.com/RallyTools/RallyRestToolkitForJava/issues/18","id":96941115,"number":18,"title":"How to create the GetRequest to get the report information?","user":{"login":"IrisLiqueur","id":13476668,"avatar_url":"https://avatars.githubusercontent.com/u/13476668?v=3","gravatar_id":"","url":"https://api.github.com/users/IrisLiqueur","html_url":"https://github.com/IrisLiqueur","followers_url":"https://api.github.com/users/IrisLiqueur/followers","following_url":"https://api.github.com/users/IrisLiqueur/following{/other_user}","gists_url":"https://api.github.com/users/IrisLiqueur/gists{/gist_id}","starred_url":"https://api.github.com/users/IrisLiqueur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IrisLiqueur/subscriptions","organizations_url":"https://api.github.com/users/IrisLiqueur/orgs","repos_url":"https://api.github.com/users/IrisLiqueur/repos","events_url":"https://api.github.com/users/IrisLiqueur/events{/privacy}","received_events_url":"https://api.github.com/users/IrisLiqueur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-24T01:33:22Z","updated_at":"2015-07-24T06:00:48Z","closed_at":null,"body":" RallyRestApi restApi = new RallyRestApi(new URI(\"https://rally1.rallydev.com\"), \"\", \"\");\r\n    \tString applicationName = \"Test Rally API\";\r\n        restApi.setApplicationName(applicationName);\r\n        restApi.setProxy(new URI(\"https://web-proxy.atl.hp.com:8080\"), \"\", \"\");\r\n        System.out.println(restApi.getWsapiVersion()); \r\n\r\n        \r\n        HttpClient client = restApi.getClient();\r\n        System.out.println(client);\r\n        \r\n        try {\r\n        \tSSLSocketFactory sf = new SSLSocketFactory(new TrustStrategy() {\r\n                public boolean isTrusted(X509Certificate[] certificate, String authType)\r\n                    throws CertificateException {\r\n                    //trust all certs\r\n                    return true;\r\n                }\r\n            }, SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);\r\n            client.getConnectionManager().getSchemeRegistry().register(new Scheme(\"https\", 443, sf));\r\n            \r\n        \tString workspaceRef = \"/workspace/3724843318\"; //YOUR VALID WORKSPACE OID HERE\r\n        \tGetRequest getRequest = new GetRequest(workspaceRef);\r\n        \tGetResponse getResponse = restApi.get(getRequest);\r\n        \tSystem.out.println(getResponse.getObject());\r\n        } catch (Exception e) {\r\n        \tSystem.out.println(e);\r\n        } finally {\r\n            restApi.close();\r\n        }   \r\n\r\n\r\n\r\n\r\nI also find connection problem, timed out..."},"comment":{"url":"https://api.github.com/repos/RallyTools/RallyRestToolkitForJava/issues/comments/124338416","html_url":"https://github.com/RallyTools/RallyRestToolkitForJava/issues/18#issuecomment-124338416","issue_url":"https://api.github.com/repos/RallyTools/RallyRestToolkitForJava/issues/18","id":124338416,"user":{"login":"IrisLiqueur","id":13476668,"avatar_url":"https://avatars.githubusercontent.com/u/13476668?v=3","gravatar_id":"","url":"https://api.github.com/users/IrisLiqueur","html_url":"https://github.com/IrisLiqueur","followers_url":"https://api.github.com/users/IrisLiqueur/followers","following_url":"https://api.github.com/users/IrisLiqueur/following{/other_user}","gists_url":"https://api.github.com/users/IrisLiqueur/gists{/gist_id}","starred_url":"https://api.github.com/users/IrisLiqueur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IrisLiqueur/subscriptions","organizations_url":"https://api.github.com/users/IrisLiqueur/orgs","repos_url":"https://api.github.com/users/IrisLiqueur/repos","events_url":"https://api.github.com/users/IrisLiqueur/events{/privacy}","received_events_url":"https://api.github.com/users/IrisLiqueur/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T06:00:48Z","updated_at":"2015-07-24T06:00:48Z","body":"RallyRestApi restApi = new RallyRestApi(new URI(\"https://rally1.rallydev.com\"), \"userName\", \"password\");\r\n    String applicationName = \"Test Rally API\";\r\n        restApi.setApplicationName(applicationName);\r\nString workspaceRef = \"/workspace/3724843318\"; //YOUR VALID WORKSPACE OID HERE\r\n           GetRequest getRequest = new GetRequest(workspaceRef);\r\n           GetResponse getResponse = restApi.get(getRequest);\r\n           System.out.println(getResponse.getObject());\r\n\r\n\r\nThe console is as follows:\r\nv2.0\r\ncom.rallydev.rest.client.BasicAuthClient@17a7cec2\r\nException in thread \"main\" org.apache.http.conn.HttpHostConnectException: Connection to https://rally1.rallydev.com refused\r\n     at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:190)\r\n     at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)\r\n     at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:643)\r\n     at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)\r\n     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)\r\n     at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:137)\r\n     at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:108)\r\n     at com.rallydev.rest.client.HttpClient.executeRequest(HttpClient.java:157)\r\n     at com.rallydev.rest.client.HttpClient.doRequest(HttpClient.java:145)\r\n     at com.rallydev.rest.client.BasicAuthClient.doRequest(BasicAuthClient.java:56)\r\n     at com.rallydev.rest.client.HttpClient.doGet(HttpClient.java:221)\r\n     at com.rallydev.rest.RallyRestApi.get(RallyRestApi.java:195)\r\n     at rally.test.main(test.java:62)\r\nCaused by: java.net.ConnectException: Connection timed out: connect\r\n     at java.net.DualStackPlainSocketImpl.connect0(Native Method)\r\n     at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)\r\n     at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)\r\n     at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)\r\n     at java.net.AbstractPlainSocketImpl.connect(Unknown Source)\r\n     at java.net.PlainSocketImpl.connect(Unknown Source)\r\n     at java.net.SocksSocketImpl.connect(Unknown Source)\r\n     at java.net.Socket.connect(Unknown Source)\r\n     at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)\r\n     at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:414)\r\n     at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)\r\n     ... 12 more\r\n\r\n\r\nFrom: kenshinji [mailto:notifications@github.com]\r\nSent: 2015年7月24日 10:18\r\nTo: RallyTools/RallyRestToolkitForJava\r\nCc: Lu, Iris\r\nSubject: Re: [RallyRestToolkitForJava] How to create the GetRequest to get the report information? (#18)\r\n\r\n\r\nWhat's the output from your console? Is there any error?\r\n\r\n—\r\nReply to this email directly or view it on GitHub<https://github.com/RallyTools/RallyRestToolkitForJava/issues/18#issuecomment-124293713>.\r\n"}}