Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Interwoven can provide webservice to getAllworkspaceDetails
abc1234
Hi
There is no webservice available currently to get details of all Workspace details like (workspacename and workspaceid). It will better if u can provide this solution. Otherwise user needs to write custom webservice to connect the database and query to reterive all Workspace details.
Find more posts tagged with
Comments
jny
WSW 8.2 IWov Web Service provides this.
abc1234
Hi jny,
Could u clearly explain me from where to consume this webservice.
http://localhost/WorkSite/Services/IWOVServices.asmx
CreateWorkspaces
GetWorkspaces - For this we need to pass workspaceid
SearchWorkspaces
SetWorkspacesProperties
My case is we don't have any information regarding workspace id. So i need to get all the workspaceid and corresponding workspacename. If i have 10 workpsace in Interwoven with different user created, then i must be able to get all 10 workspace details.
jny
Here's a code example on how to search for all the workspaces by the workspace profile author and owner names. The code demonstrates how to get the first workspace in the result set, then get the workspace name and objectid.
[C#]
using RunWorkSiteWebServicesEx.localhost;
IWOVServices WSWSvcs = new IWOVServices();
// Attempt to authenticate
WSWSvcs.PreAuthenticate = true;
WSWSvcs.AllowAutoRedirect = true;
WSWSvcs.Credentials = System.Net.CredentialCache.DefaultCredentials;
// ~ Search Workspaces Example Begins ~
SearchWorkspacesInput input = new SearchWorkspacesInput();
// Databases in which to search.
string[] arrDatabaseName = new string[3];
arrDatabaseName[0] = "WSDSS1";
arrDatabaseName[1] = "WSDSS2";
arrDatabaseName[2] = "WSDSSWEB";
// Workspace profile values by which to search.
ProfileSearchParameter[] arrProfParams = new ProfileSearchParameter[1];
arrProfParams[0] = new ProfileSearchParameter();
arrProfParams[0].AttributeID = imProfileAttributeID.imProfileAuthor;
arrProfParams[0].SearchValue = "GUEST";
// Workspace property values by which to search.
FolderSearchParameter[] arrFldrParams = new FolderSearchParameter[1];
arrFldrParams[0] = new FolderSearchParameter();
arrFldrParams[0].AttributeID = imFolderAttributeID.imFolderOwner;
arrFldrParams[0].SearchValue = "GUEST";
// Workspace profile values to return
imProfileAttributeID[] arrRetProfItems = new imProfileAttributeID[1];
arrRetProfItems[0] = imProfileAttributeID.imProfileName;
// Search input.
input.Databases = arrDatabaseName;
input.ProfileSearchParameters = arrProfParams;
input.WorkspaceSearchParameters = arrFldrParams;
input.OutputProfile = arrRetProfItems;
input.OutputMask = OutputMask.Profile;
// Search.
SearchWorkspacesOutput output = WSWSvcs.SearchWorkspaces(input);
// Check results.
if (output.Workspaces.Length != 0)
{
// Get results.
Workspace ws = output.Workspaces[0];
string retWorkspaceName = ws.Profile[0].Value;
string retWorkspaceID = ws.ObjectID;
}