From 1429fe6a0423eacb527de8ae4d73af783e30434b Mon Sep 17 00:00:00 2001 From: Nicholas Carpenter Date: Thu, 3 Sep 2015 11:54:24 -0400 Subject: [PATCH 1/2] Use the DoPost call to get a Secured URI --- Rally.RestApi/RallyRestApi.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Rally.RestApi/RallyRestApi.cs b/Rally.RestApi/RallyRestApi.cs index c511def..60c2f80 100644 --- a/Rally.RestApi/RallyRestApi.cs +++ b/Rally.RestApi/RallyRestApi.cs @@ -488,8 +488,7 @@ public DynamicJsonObject Post(String relativeUri, DynamicJsonObject data) throw new InvalidOperationException("You must authenticate against Rally prior to performing any data operations."); Uri uri = new Uri(String.Format("{0}slm/webservice/{1}/{2}", httpService.Server.AbsoluteUri, WsapiVersion, relativeUri)); - string postData = serializer.Serialize(data); - return serializer.Deserialize(httpService.Post(uri, postData, GetProcessedHeaders())); + return DoPost(uri, data, false); } #endregion From a59007cdfdc92c2e381ddf2658e0f160344ae568 Mon Sep 17 00:00:00 2001 From: Nicholas Carpenter Date: Thu, 3 Sep 2015 13:25:14 -0400 Subject: [PATCH 2/2] Add in Retry --- Rally.RestApi/RallyRestApi.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rally.RestApi/RallyRestApi.cs b/Rally.RestApi/RallyRestApi.cs index 60c2f80..cc1cfde 100644 --- a/Rally.RestApi/RallyRestApi.cs +++ b/Rally.RestApi/RallyRestApi.cs @@ -488,7 +488,7 @@ public DynamicJsonObject Post(String relativeUri, DynamicJsonObject data) throw new InvalidOperationException("You must authenticate against Rally prior to performing any data operations."); Uri uri = new Uri(String.Format("{0}slm/webservice/{1}/{2}", httpService.Server.AbsoluteUri, WsapiVersion, relativeUri)); - return DoPost(uri, data, false); + return DoPost(uri, data, true); } #endregion