I am very new to LiveLink Implementation. my project requirement is i need to upload and download the document through ASP.NET interface. Using LiveLink Web Service
Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace GreatFileUpload
{
class Program
{
/*APPU NAIR PROGRAMMERS REPURPOSING NOTE THESE 05/03/2013
* THIS PROJCETS SERVICE REFERENCES ARE POINTING TO LIVELINK TEST SYSTEM SO IF YOU BUILD AND MAKE THIS WORK CHECK
* THE OBJECTS IN .
* YOU WILL NEED A MANUAL LOGIN AS THE wcf EXPOSED IS ANONYMOUS SCHEME.SSO DOES NOT WORK
* CONTENTSERVICE IS THE WAY YOU GET BIG FILES IN.IF YOU HAVE MORE THAN 2 GB UPLOADS YOU NEED
* SOME TWEAKS IN CLIENTS AS WELL AS THE WEB.CONFIG IN THE LIVLINK IIS SRVER
* if code works and you re-run the sample you will get "object exists" as livelink will allow only one object
* by that name.you can add a new version to the object as livelink is a DMS
* also if you do ListContainer call you can enumerate children and find it yourself
*/
static void Main(string[] args)
{
//IMPORTANT README AND REPURPOSE this is your userid and password into livelink
//this is not your domain password the one that the livelink admin gave you
//this is the file I am using in this example
string filePath = @"C:\temp\EULA.RTF";
//this is the folder id where ihave permissions to put it
//if you are in the livlink gui look in the url above the objid/dataid of the folder
int parentID = 577372;
string name = "EULA.RTF";
string comment = "Uploaded through the EWS DocumentManagement web service.";
//==================================================================================
// 1) Create clients that use the service references
//==================================================================================
Authentication.AuthenticationClient authclient = new Authentication.AuthenticationClient();
DocumentManagement.DocumentManagementClient dm = new DocumentManagement.DocumentManagementClient();
ContentService.ContentServiceClient cs = new ContentService.ContentServiceClient();
MemberService.MemberServiceClient ms = new MemberService.MemberServiceClient();
//==================================================================================
//==================================================================================
// 2) Authenticate with the Livelink Server and obtain an authentication token
//==================================================================================
DocumentManagement.OTAuthentication dmOTAuth = new DocumentManagement.OTAuthentication();
MemberService.OTAuthentication msOTAuth = new MemberService.OTAuthentication();
ContentService.OTAuthentication csOTAuth = new ContentService.OTAuthentication();
//==================================================================================
// 3) Create the Metadata for the Document and obtain a context for upload
//==================================================================================
bool advancedVersionControl = false; // Note: This will result in the creation of a minor version.
DocumentManagement.Metadata docMetadata1 = null; // inherit metadata from the parent object
//==================================================================================
// 4) Upload the Content for the Document
//==================================================================================
try
{
FileInfo fi = new FileInfo(filePath);
FileStream fs = new FileStream(filePath, FileMode.Open, FileAccess.Read);
ContentService.FileAtts fa = new ContentService.FileAtts();
// Store file attributes for the document
fa.CreatedDate = fi.CreationTime;
fa.ModifiedDate = fi.LastWriteTime;
fa.FileName = fi.Name;
fa.FileSize = fi.Length;
Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.