How do I call UpdateLabelComment?

Post your questions regarding using the Vault and Fortress API in your programs.

Moderator: SourceGear

Post Reply
itsckl
Posts: 7
Joined: Thu Feb 04, 2010 5:25 am

How do I call UpdateLabelComment?

Post by itsckl » Mon Feb 15, 2010 1:49 am

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

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Re: How do I call UpdateLabelComment?

Post by jeremy_sg » Mon Feb 15, 2010 10:30 am

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.
Subscribe to the Fortress/Vault blog

Post Reply