Hello group
I am using Documentum for quite some time and have expirience in using DFS. As I need to move on the project where I will use CMIS, I have question about it. I downloaded and deployed CMIS on my tomcat (I followed deployment instructions from deployment guide). I am able to see wsdl, everything seem to work fine. I have referenced CMIS web service (ObjectService) into my sample C# application and that was also ok. Now I need info, how to autheticate to my docbase. I have written following code:
CMIS.
ObjectServicePort objectService = new CMIS.ObjectServicePortClient();CMIS.
createDocumentRequest request = new CMIS.createDocumentRequest();request.folderId =
"0c00000f80000107"; // ID of temp cabinetrequest.contentStream =
new CMIS.cmisContentStreamType() { filename = "c:\\Test.txt" };request.properties =
new CMIS.cmisPropertiesType();request.properties.Items =
new CMIS.cmisProperty[] { new CMIS.cmisPropertyString() { propertyDefinitionId = "object_name", localName = "object_name", displayName = "Object Name", value = new string[] { "Test" } } };request.repositoryId=
"playground";request.versioningState = CMIS.
enumVersioningState.major;objectService.createDocument(request);
When I start this I get:
System.ServiceModel.FaultException`1 was unhandled
Message=Authentication failed due to missing credentials
[com.emc.documentum.fs.cmis.impl.dfs.exception.AuthenticationException] null
So, how I create and pass credentials to CMIS service?
Thanks