How to use Rational Team Concert Client for Microsoft Visual Studio IDE dlls
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
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
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
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