Status: Open
Status: Answered
Status: Closed
Status: Duplicate

Converting LAPI code to CS Web service calls

0
Posted May 15 by Mike wu.
Updated May 15.

hi all,

when converting LAPI code to CS web service calls, it seems like there are lot less API from the web service. The following is an example of creating a sub folder with LAPI:

//create session and document object.
var LLs = New LLSession(…);

var DOCUMENTS = New LAPI_DOCUMENTS(LLs);

var LL_ATTR = New LAPI_ATTRIBUTES(LLs);

//find the parent folder category list, objCategoryID is the folder ID
int status = DOCUMENTS.ListObjectCategoryIDs(objCategoryID, catIDList);

//get the categoryVersion that matched the given categoryID:catID
status = DOCUMENTS.GetObjectAttributesEx(objCategoryID, catID, categoryVersion);

//create the folder, set VolumeID to -2000, passing some custom attribute info in createInfo object.
status = DOCUMENTS.CreateObjectEx(VolumeID, dataID, LAPI_DOCUMENTS.OBJECTTYPE, LAPI_DOCUMENTS.FOLDERSUBTYPE, folderName, createInfo, objectInfo);

what's the equivalent API from CS Web service? the closet method from DocumentManagement API is CreateFolder(OTAuthentication otauth, string parentFolder, string folderName, string comments, Metadata metadata)

Metadata can contain key/value list, think that's for the custom attributes.

any pointer to any guide on converting LAPI to CS web service calls are appreciated.

thx

1 Answer

0
BEST ANSWER: As chosen by the author.

Hi,

I also need a solution for this.


 You have subscribed and will receive email notifications of updates to this topic. To unsubscribe, uncheck the checkbox.

Statistics

Related categories

Related tags

Your answer

To leave an answer, please sign in.