It's all about the answers!

Ask a question

How to use Rational Team Concert Client for Microsoft Visual Studio IDE dlls


deb pro (334) | asked Jun 20 '12, 7:55 a.m.
retagged Jun 20 '12, 11:50 p.m. by Evan Hughes (2.4k1318)
I want to connect RTC (url) using Rational Team Concert Client for Microsoft Visual Studio IDE dlls. I have implemented the following codes:

TeamRepositoryConnectionInfo tc = new TeamRepositoryConnectionInfo();
tc.RepositoryURI = "https://test:9443/ccm/";
tc.UserName = "ak";
tc.Password = "ak";

com.ibm.team.repository.common.wrapper.RepositoryWrapper("https://test:9443/ccm/");

ITeamRepository teamRepository = null;
teamRepository = TeamPlatform.GetTeamRepositoryClient().GetTeamRepository("https://test:9443/ccm/");

if (teamRepository != null)
{
       com.ibm.team.repository.client.TeamPlatform.GetTeamRepositoryClient().RemoveTeamRepository(teamRepository);
}
com.ibm.team.repository.client.TeamPlatform.GetTeamRepositoryClient().CreateNewRepositoryConnection(tc);
              
teamRepository = TeamPlatform.GetTeamRepositoryClient().GetTeamRepository("https://test:9443/ccm/");

teamRepository.Login(null);

upto this Login call everything is working fine for a valid userid and password.

Now I want to get the values of com.ibm.team.workitem.client.IWorkItemClient using teamRepository object as defined earlier as found in the eclipse RTC plugin example
IWorkItemClient workItemClient = (IWorkItemClient) teamRepository.getClientLibrary();

But not getting any method to do so.

Please help me to proceed for the same.

Thanks in Advance

Accepted answer


permanent link
Sreerupa Sen (1.0k4) | answered Jun 25 '12, 1:10 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
The Eclipse Client and the Visual Studio Client use totally different services. The Visual Studio Client uses modeled REST services, similar to the ones used in the web client. So the Eclipse client example will not work in Visual Studio.
Please have a look at our FAQ page at https://jazz.net/library/article/601. The section https://jazz.net/library/article/601#How_VSClient_Fails_Login_Proxy_One has attached solution files that show you how you can connect to the jazz server using .NET.
Finally, the modeled REST services are not APIs. So they may change at any time.

Cheers
--Rupa
Sreerupa Sen selected this answer as the correct answer

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.