Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes


Accepted answer

Permanent link
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

1 vote

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,937

Question asked: Jun 20 '12, 7:55 a.m.

Question was seen: 4,759 times

Last updated: Jun 25 '12, 1:10 a.m.

Confirmation Cancel Confirm