Page 1 of 1

How do I call UpdateLabelComment?

Posted: Mon Feb 15, 2010 1:49 am
by itsckl
I need to update a labels comment. I can see that the vault GUI client calls SOAPAction: "http://www.sourcegear.com/schemas/vault ... belComment" to do this. Which function should I use to mimic this?

Regards, Christoph

Re: How do I call UpdateLabelComment?

Posted: Mon Feb 15, 2010 10:30 am
by jeremy_sg
You will have to write your own client against our ClientAPI.

Start with:

http://support.sourcegear.com/viewtopic.php?f=31&t=8020

which has examples for logging in. Once logged in, you'll need to use:

Code: Select all

 ServerOperations.client.ClientInstance.GetByLabel_GetStructure(treeobj.FullPath, label, ref labelID, "", out discoveredPaths, out labelStructure, out rootID);
to get the labelid, and then call:

Code: Select all

 ServerOperations.client.ClientInstance.UpdateLabelComment(nRepID, labelID, strComment)
to update the comment.