Hello,
I am using Content Server 10 Update 8 (version 10.0.0.2206) and I want to add a Content Server Classification to a Document with Content Server Web Services. Is this possible? How can I add the classification programmatically?
Best Regards,
Hi,
If you are using classification module version 10.2.0 there are new webservices methods which are specific to classification subtype 199. (les-services-classifications )
You can use ApplyClassification() method to apply that type of classification.
Thanks,
Anna
From: eLink Entry: Content Web Services Forum [mailto:otdncontentwebservices971forum@elinkkc.opentext.com]Sent: Friday, November 23, 2012 10:45 PMTo: eLink RecipientSubject: RE [EXTERNAL]Adding Content Server Classification to Document with Web Services
RE [EXTERNAL]Adding Content Server Classification to Document with Web Services
Posted byappu.n.nair@conocophillips.com (Nair, Appu) On 11-23-2012 22:41
It is possible to apply a classification subtype=199 by suitably setting the create info param in lapi also subtype=551 which is RM classification can be applied by including theRMInterface file I know that RM is doable with web services although I am not sure if ordinary classifications can be manipulated via web services However the oscript code to affix classifications is albeit very easy so you may be able to stub it for your project by following the Hello World web service Also I have no access to livelink now perhaps you can look if create info is a param in web services as wellSent with Good (www.good.com) -----Original Message----- From: eLink Entry: Content Web Services Forum [otdncontentwebservices971forum@elinkkc.opentext.com<mailto:otdncontentwebservices971forum@elinkkc.opentext.com>]Sent: Friday, November 23, 2012 07:01 AM Central Standard Time To: eLink Recipient Subject: [EXTERNAL]Adding Content Server Classification to Document with Web ServicesAdding Content Server Classification to Document with Web Services<https://knowledge.opentext.com/knowledge/cs.dll/open/30653312> Posted by ricardo.cartaxo@novabase.pt<mailto:ricardo.cartaxo@novabase.pt> (Cartaxo, Ricardo) On 11-23-2012 07:53 Hello, I am using Content Server 10 Update 8 (version 10.0.0.2206) and I want to add a Content Server Classification to a Document with Content Server Web Services. Is this possible? How can I add the classification programmatically?Best Regards, ________________________________ [To post a comment, use the normal reply function] Forum: Content Web Services Forum<https://knowledge.opentext.com/knowledge/cs.dll?func=ll&objId=15633041&objAction=view>Content Server: Knowledge Center<https://knowledge.opentext.com/knowledge/cs.dll>
[To post a comment, use the normal reply function]
Topic:
Adding Content Server Classification to Document with Web Services
Forum:
Content Web Services Forum
Content Server:
Knowledge Center
Thanks for the replies.
Anna, I have the les-services-classifications deployed on TomCat but everytime I try to use any method from that web service I get the following error:
“OTDS Error”.
The authentication is working with other web services but not this one.
Here’s a sample of my code.
RCSAuthentication.AuthenticationClient RCSauth = new RCSAuthentication.AuthenticationClient();
RCSAuthentication.OTAuthentication otAuthRCS = new RCSAuthentication.OTAuthentication();
DocumentManagement.OTAuthentication dmAuth = new DocumentManagement.OTAuthentication();
DocumentManagement.DocumentManagementClient dm = new DocumentManagement.DocumentManagementClient();
Classifications.OTAuthentication clAuth = new Classifications.OTAuthentication();
Classifications.ClassificationsClient classification = new Classifications.ClassificationsClient();
string authToken;
Content.OTAuthentication contAuth = new Content.OTAuthentication();
private void AuthenticateUserRCS(string username, string password)
{
RCSauth.Endpoint.Address = new EndpointAddress(rcsAuthServiceURL);
if (RCSauth.State == CommunicationState.Created || RCSauth.State == CommunicationState.Closed || RCSauth.State == CommunicationState.Closing)
authToken = RCSauth.Authenticate(ref otAuthRCS, username, password);
dmAuth.AuthenticationToken = authToken;
contAuth.AuthenticationToken = authToken;
clAuth.AuthenticationToken = authToken;
}
static void Main(string[] args)
Program p1 = new Program();
p1.AuthenticateUserRCS(p1.userName, p1.password);
Node doc = p1.dm.GetNode(ref p1.dmAuth, 242597);
Node clss = p1.dm.GetNode(ref p1.dmAuth, 87922);
int[] classificationsIds = { clss.ID };
p1.classification.ApplyClassifications(ref p1.clAuth, doc.ID, classificationsIds);
The classifications web service has some different type of authentication?
Best Regards