I included the standard web service references, and I want to simply test if a file exists by a given name and download it.
// The user's credentials
string username = "haessd" ;
string password = "haessd" ;
// Create the Authentication service client
LiveLink.Authentication. AuthenticationClient authClient = new LiveLink.Authentication. AuthenticationClient ();
// Store the authentication token
string authToken = null ;
// Call the AuthenticateUser() method to get an authentication token
try
{
authToken = authClient.AuthenticateUser(username, password);
}
catch ( FaultException e)
{
MessageBox .Show( "LiveLink Authentication Filed : " + e.Code.Name + "\n" + e.Message);
return ;
}
finally
{
// Always close the client
authClient.Close();
}
LiveLink.DocumentManagement. OTAuthentication otAuth = new LiveLink.DocumentManagement. OTAuthentication ();
otAuth.AuthenticationToken = authToken;
// Create the OTAuthentication object and set the authentication token
LiveLink.ContentService. OTAuthentication otCAuth = new LiveLink.ContentService. OTAuthentication ();
otCAuth.AuthenticationToken = authToken;
// Create the ContentService service client
LiveLink.ContentService. ContentServiceClient contentServiceClient = new LiveLink.ContentService. ContentServiceClient ();
// Create the DocumentManagement service client
LiveLink.DocumentManagement. DocumentManagementClient docManClient = new LiveLink.DocumentManagement. DocumentManagementClient ();
So everything works to here, now, I want to grab a given file say "
PDPTest.xml
" from some livelink location (lets say I don't know where the file is located so I want to search all directories web services has right to).
Is there a sample which will do this, or what calls do I need for this?