cancel
Showing results for 
Search instead for 
Did you mean: 

Download JT with C# and SOA

Experimenter
Experimenter

Hello

 

 

First, sorry for my bad english. 

 

I try to download JT thourt item_id with SOA from TC Server.

I have only the Item ID.

Now I use "GetItemAndRelatedObjects" ,but have error.

I don't know why?

please help me 

 Dataset[] datasets = null;
DataManagementService dmService = DataManagementService.getService(Session.getConnection());
GetItemAndRelatedObjectsInfo[] infos = new GetItemAndRelatedObjectsInfo[1];
GetItemAndRelatedObjectsInfo info = new GetItemAndRelatedObjectsInfo();
try
{
ItemRevision ItemRev = GetItemRevision(itemID, null) as ItemRevision;
if (ItemRev==null)
{
return null;
}
info.ClientId = itemID;
info.ItemInfo.UseIdFirst = true;
DatasetRelationFilter[] filters = new DatasetRelationFilter[1];
filters[0] = new DatasetRelationFilter();
filters[0].DatasetTypeName = datasetTypes;
filters[0].RelationTypeName = relationType;
info.DatasetInfo.Filter.RelationFilters = filters;
infos[0] = info;
GetItemAndRelatedObjectsResponse response = dmService.GetItemAndRelatedObjects(infos);
GetItemAndRelatedObjectsItemOutput[] outputs = response.Output;

 

Best regards

 

2 REPLIES

Re: Download JT with C# and SOA

Experimenter
Experimenter
no people!

Re: Download JT with C# and SOA

Pioneer
Pioneer

Hi,

 

you need to specify what error you get - otherwise it's a needle in a haystack for usSmiley Happy

 

BR

Frank