You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by Kaushik <ka...@datamatics.com> on 2013/02/25 17:41:21 UTC
RE: FW: AW: Open Dot CMIS Query
Hi,
I have a query regarding Add Document. I am using IBM FileNet 5.1. When I am adding document, I am not getting any error but when I download the file I uploaded through CMIS, I don’t get the file extension in the Save As Dialog box.
Please help me. These are all the parameters I am adding while creating the document.
ContentStream oContentStream = new ContentStream();
oContentStream.FileName = sFileName;
oContentStream.MimeType = sMimeType;
oContentStream.Length = oStream.Length;
oContentStream.Stream = oStream;
// Add document into repository
sDocID = oSession.Binding.GetObjectService().CreateDocument(oSession.RepositoryInfo.Id, oProperties, sFolderID, oContentStream, null, null, null, null,null);
Let me know if I am doing anything wrong.
Thanks and Regards,
Kaushik Choudhari
Information Management Practice
Description: http://insight.datamaticstech.com/esig/Line.gif
Description: aaa
(D):+91 22 6102 5242
(M):+91 887 904 4619
Datamatics Global Services Limited
Unit 190, SDF VI, SEEPZ, Andheri (E) Mumbai 400 096, India
www.datamatics.com
Americas | Asia | Australia | Europe
<http://www.facebook.com/pages/Datamatics-Global-Services/268835395007> Description: Facebook
<http://twitter.com/dgsl> Description: Twitter
<http://www.linkedin.com/companies/datamatics-global-services> Description: LinkIn
From: Jay Brown [mailto:jay.brown@us.ibm.com]
Sent: Friday, November 02, 2012 10:05 PM
Cc: dev@chemistry.apache.org; kaushik.choudhari@datamatics.com; kus@bel-it.de; 'prashant patel'
Subject: RE: FW: AW: Open Dot CMIS Query
Not sure I understand the problem about the dll. The 'getting started with dotCMIS' page here:
http://chemistry.apache.org/dotnet/getting-started-with-dotcmis.html
has an simple example showing how to create a document and specify the document subclass that you wish to create.
Here is the example with the pertinent line highlighted. (below)
If you have (for example a doc subclass who's id = invoice_doc then the line would read:
properties[PropertyIds.ObjectTypeId] = "invoice_doc";
Creating a document
IFolder folder = ...
IDictionary<string, object> properties = new Dictionary<string, object>();
properties[PropertyIds.Name] = "Hello World Document";
properties[PropertyIds.ObjectTypeId] = "cmis:document";
byte[] content = UTF8Encoding.UTF8.GetBytes("Hello World!");
ContentStream contentStream = new ContentStream();
contentStream.FileName = "hello-world.txt";
contentStream.MimeType = "text/plain";
contentStream.Length = content.Length;
contentStream.Stream = new MemoryStream(content);
IDocument doc = folder.CreateDocument(properties, contentStream, null);
Jay Brown
Senior Engineer, ECM Development
IBM Software Group
jay.brown@us.ibm.com
Inactive hide details for "Kaushik" ---11/02/2012 05:11:44 AM---Hi,"Kaushik" ---11/02/2012 05:11:44 AM---Hi,
From:
"Kaushik" <ka...@datamatics.com>
To:
Jay Brown/Costa Mesa/IBM@IBMUS,
Cc:
<de...@chemistry.apache.org>, <ku...@bel-it.de>, "'prashant patel'" <pr...@datamatics.com>, <ka...@datamatics.com>
Date:
11/02/2012 05:11 AM
Subject:
RE: FW: AW: Open Dot CMIS Query
_____
Hi,
We were able to get the getObject function working along with the Update properties function.
But when we are creating the document using the createDocument function, we need to create document of specific document class and not of a general document class.
We are not able to get this function in the dll. Please help us to resolve this issue.
Thanks and Regards,
Kaushik Choudhari
Information Management Practice
(D):+91 22 6102 5242
(M):+91 887 904 4619
Datamatics Global Services Limited
Unit 190, SDF VI, SEEPZ, Andheri (E) Mumbai 400 096, India
www.datamatics.com
Americas | Asia | Australia | Europe
From: prashant patel [mailto:prashant.patel@datamatics.com]
Sent: Friday, November 02, 2012 11:57 AM
To: jay.brown@us.ibm.com
Cc: dev@chemistry.apache.org; kus@bel-it.de; Kaushik Choudhari
Subject: Re: FW: AW: Open Dot CMIS Query
Hi Jay,
We have tried two methods to get objects from FileNet repository, however only one of them is working.
Here is the code snippet.
// Method 1 : Working
IObjectData result = oSession.Binding.GetObjectService().GetObject(oSession.RepositoryInfo.Id, "idd_68481FB4-13EE-4269-88A4-8C195BCC03A2", "*", true, IncludeRelationshipsFlag.Both, "*", true, true, null);
// Method 2 : Not working
IDocument oDocument = oSession.GetObject("idd_68481FB4-13EE-4269-88A4-8C195BCC03A2") as IDocument;
Any help on this will be appreciated.
Thanks,
Prashant Patel
On Fri, 11/02/2012 11:10 AM, "Kaushik" <kaushik.choudhari@datamatics.com> wrote:
Thanks and Regards,
Kaushik Choudhari
Information Management Practice
(D):+91 22 6102 5242
(M):+91 887 904 4619
Datamatics Global Services Limited
Unit 190, SDF VI, SEEPZ, Andheri (E) Mumbai 400 096, India
www.datamatics.com
Americas | Asia | Australia | Europe
From: Jay Brown [ <ma...@us.ibm.com> mailto:jay.brown@us.ibm.com]
Sent: Thursday, November 01, 2012 7:45 PM
Cc: <ma...@chemistry.apache.org> dev@chemistry.apache.org; Kaushik Choudhari; <ma...@bel-it.de> kus@bel-it.de
Subject: Re: AW: Open Dot CMIS Query
That object ID that you are using in your example is native P8 GUID instead of a P8 CMIS object ID.
Generally you need to obtain the id of the document from CMIS via Query or some soft of navigation operation (like getFolderChildren) then retrieve the Id to examine the object.
For example you would first get the root folder id from the repository info then use that as your navigation starting point.
If you need to convert a native GUID to a P8 CMIS id you will need to strip off the '{' 's and add the type prefix. (note this method is not supported since the spec requires that you tread ids as opaque identifiers.)
P8 CMIS ids look like this: (idf_ for folders idd_ for docuuments)
idf_BAD138F0-8BCA-4A1D-A000-0E182A34B3D9
idd_A3AD74A0-EB00-43AF-BED4-76B113563D08
Note: The book "CMIS and Apache Chemistry in Action" from Manning covers all of these CMIS issues in detail. ( <http://www.manning.com/mueller/> http://www.manning.com/mueller/)
Jay Brown
Senior Engineer, ECM Development
IBM Software Group
<ma...@us.ibm.com> jay.brown@us.ibm.com
prashant patel ---11/01/2012 02:27:14 AM---Hi, We have changed our code to work with AtomPub instead of web service. Now we are able to connect
From:
prashant patel < <ma...@datamatics.com> prashant.patel@datamatics.com>
To:
<ma...@bel-it.de> kus@bel-it.de,
Cc:
Kaushik Choudhari < <ma...@datamatics.com> kaushik.choudhari@datamatics.com>, " <ma...@chemistry.apache.org> dev@chemistry.apache.org" < <ma...@chemistry.apache.org> dev@chemistry.apache.org>
Date:
11/01/2012 02:27 AM
Subject:
Re: AW: Open Dot CMIS Query
_____
Hi,
We have changed our code to work with AtomPub instead of web service. Now we are able to connect to repository and create session but when we try to find folder/document from repository, it says "Not Found".
Here is the code snippet that we are using.
// Dictionary object which will hold various paramaters
Dictionary<string, string> oParameters = new Dictionary<string, string>();
oParameters[SessionParameter.BindingType] = BindingType.AtomPub;
oParameters[SessionParameter.AtomPubUrl] = " <https://p851-kaushik.p851domain.com:9443/fncmis/resources/Service> https://p851-kaushik.p851domain.com:9443/fncmis/resources/Service";
oParameters[SessionParameter.User] = "P8Admin";
oParameters[SessionParameter.Password] = "******";
// Create new instance of SessionFactory class
SessionFactory oFactory = SessionFactory.NewInstance();
ISession oSession = oFactory.GetRepositories(oParameters)[0].CreateSession();
// Get Document using ObjectID
IDocument oDocument = oSession.GetObject("{D234E670-74E2-4A75-ABB4-BAAFB001F029}") as IDocument;
Any help on this one will be appreciated.
Thanks,
Prashant Patel.
On Wed, 10/31/2012 05:50 PM, Kai-Uwe Schmidt < <ma...@bel-it.de> kus@bel-it.de> wrote:
>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
Assuming that
<https://p851-kaushik:9443/fncmis/RepositoryService?wsdl> https://p851-kaushik:9443/fncmis/RepositoryService?wsdl works from your browser and gets you the wsdl file I would guess you use a self-signed certificate. The browser would show you a warning. If so make that certificate trusted.
Von: Kaushik [ <ma...@datamatics.com> mailto:kaushik.choudhari@datamatics.com]
>
Gesendet: Mittwoch, 31. Oktober 2012 13:05
>
An: Kai-Uwe Schmidt; <ma...@chemistry.apache.org> dev@chemistry.apache.org
>
Cc: 'prashant patel'; <ma...@datamatics.com> kaushik.choudhari@datamatics.com
>
Betreff: RE: Open Dot CMIS Query
Hi,
We have made the application as https. Please see the error below. Also find the attached
Please find the error that we are getting after changing the http URL.
Below is the updated code.
oParameters[SessionParameter.WebServicesAclService] =
" <https://p851-kaushik:9443/fncmis/ACLService?wsdl> https://p851-kaushik:9443/fncmis/ACLService?wsdl";
oParameters[SessionParameter.WebServicesRepositoryService] =
" <https://p851-kaushik:9443/fncmis/RepositoryService?wsdl> https://p851-kaushik:9443/fncmis/RepositoryService?wsdl";
oParameters[SessionParameter.WebServicesDiscoveryService] =
" <https://p851-kaushik:9443/fncmis/DiscoveryService?wsdl> https://p851-kaushik:9443/fncmis/DiscoveryService?wsdl";
oParameters[SessionParameter.WebServicesMultifilingService] =
" <https://p851-kaushik:9443/fncmis/MultiFilingService?wsdl> https://p851-kaushik:9443/fncmis/MultiFilingService?wsdl";
oParameters[SessionParameter.WebServicesNavigationService] =
" <https://p851-kaushik:9443/fncmis/NavigationService?wsdl> https://p851-kaushik:9443/fncmis/NavigationService?wsdl";
oParameters[SessionParameter.WebServicesPolicyService] =
" <https://p851-kaushik:9443/fncmis/PolicyService?wsdl> https://p851-kaushik:9443/fncmis/PolicyService?wsdl";
oParameters[SessionParameter.WebServicesObjectService] =
" <https://p851-kaushik:9443/fncmis/ObjectService?wsdl> https://p851-kaushik:9443/fncmis/ObjectService?wsdl";
oParameters[SessionParameter.WebServicesRelationshipService] =
" <https://p851-kaushik:9443/fncmis/RelationshipService?wsdl> https://p851-kaushik:9443/fncmis/RelationshipService?wsdl";
oParameters[SessionParameter.WebServicesVersioningService] =
" <https://p851-kaushik:9443/fncmis/VersioningService?wsdl> https://p851-kaushik:9443/fncmis/VersioningService?wsdl";
oParameters[SessionParameter.User] =
"P8Admin";
oParameters[SessionParameter.Password] =
"Password123";
oParameters[SessionParameter.RepositoryId] =
"{99AB015C-C370-431E-9467-AB6BB0628B21}";
// Create new instance of SessionFactory class
SessionFactory oFactory =
SessionFactory.NewInstance();
//IList<IRepository> oList = oFactory.GetRepositories(oParameters);
// Create Session
ISession oSession = oFactory.GetRepositories(oParameters)[0].CreateSession();
Please let us know.
Thanks and Regards,
Kaushik Choudhari
>
Information Management Practice
(D):+91 22 6102 5242
>
(M):+91 887 904 4619
Datamatics Global Services Limited
>
Unit 190, SDF VI, SEEPZ, Andheri (E) Mumbai 400 096, India
>
<http://www.datamatics.com/> www.datamatics.com
Americas | Asia | Australia | Europe
From: Kai-Uwe Schmidt [ <ma...@bel-it.de> mailto:kus@bel-it.de]
>
Sent: Wednesday, October 31, 2012 1:42 PM
>
To: <ma...@chemistry.apache.org> dev@chemistry.apache.org;
<ma...@datamatics.com> kaushik.choudhari@datamatics.com
>
Cc: prashant patel
>
Subject: AW: Open Dot CMIS Query
You need to make a https connection. .net don’t allow to send clear text password via http.
Von: Kaushik [ <ma...@datamatics.com> mailto:kaushik.choudhari@datamatics.com]
>
Gesendet: Mittwoch, 31. Oktober 2012 06:31
>
An: <ma...@chemistry.apache.org> dev@chemistry.apache.org
>
Cc: prashant patel; <ma...@datamatics.com> kaushik.choudhari@datamatics.com
>
Betreff: Open Dot CMIS Query
Hi,
We are trying to use Open Dot CMIS to connect to IBM FileNet 5.1 using IBM CMIS.
Please find the code snippet below with the error we are getting.
ISession oSession;
>
>
// Dictionary object which will hold various paramaters
>
Dictionary<string, string> oParameters = new Dictionary<string, string>();
>
>
oParameters[SessionParameter.BindingType] = BindingType.WebServices;
>
oParameters[SessionParameter.WebServicesRepositoryService] = " <http://172.29.254.182:9080/fncmis/RepositoryService?wsdl> http://172.29.254.182:9080/fncmis/RepositoryService?wsdl";
>
oParameters[SessionParameter.WebServicesAclService] = " <http://172.29.254.182:9080/fncmis/ACLService?wsdl> http://172.29.254.182:9080/fncmis/ACLService?wsdl";
>
oParameters[SessionParameter.WebServicesDiscoveryService] = " <http://172.29.254.182:9080/fncmis/DiscoveryService?wsdl> http://172.29.254.182:9080/fncmis/DiscoveryService?wsdl";
>
oParameters[SessionParameter.WebServicesMultifilingService] = " <http://172.29.254.182:9080/fncmis/MultiFilingService?wsdl> http://172.29.254.182:9080/fncmis/MultiFilingService?wsdl";
>
oParameters[SessionParameter.WebServicesNavigationService] = " <http://172.29.254.182:9080/fncmis/NavigationService?wsdl> http://172.29.254.182:9080/fncmis/NavigationService?wsdl";
>
oParameters[SessionParameter.WebServicesPolicyService] = " <http://172.29.254.182:9080/fncmis/PolicyService?wsdl> http://172.29.254.182:9080/fncmis/PolicyService?wsdl";
>
oParameters[SessionParameter.WebServicesObjectService] = " <http://172.29.254.182:9080/fncmis/ObjectService?wsdl> http://172.29.254.182:9080/fncmis/ObjectService?wsdl";
>
oParameters[SessionParameter.WebServicesRelationshipService] = " <http://172.29.254.182:9080/fncmis/RelationshipService?wsdl> http://172.29.254.182:9080/fncmis/RelationshipService?wsdl";
>
oParameters[SessionParameter.WebServicesVersioningService] = " <http://172.29.254.182:9080/fncmis/VersioningService?wsdl> http://172.29.254.182:9080/fncmis/VersioningService?wsdl";
>
>
oParameters[SessionParameter.User] = "P8Admin";
>
oParameters[SessionParameter.Password] = "******";
>
oParameters[SessionParameter.RepositoryId] = "{99AB015C-C370-431E-9467-AB6BB0628B21}";
>
>
// Create new instance of SessionFactory class
>
SessionFactory oFactory = SessionFactory.NewInstance();
>
>
// Create Session
>
oSession = oFactory.GetRepositories(oParameters)[0].CreateSession();
>
>
>
We are getting following error.
>
>
“Error: The provided URI scheme 'http' is invalid; expected 'https'.
>
Parameter name: via”.
I guess the URL
<http://172.29.254.182:9080/fncmis/ACLService?wsdl> http://172.29.254.182:9080/fncmis/ACLService?wsdl" is not available.
Please help us to resolve it.
Thanks and Regards,
Kaushik Choudhari
>
Information Management Practice
(D):+91 22 6102 5242
>
(M):+91 887 904 4619
Datamatics Global Services Limited
>
Unit 190, SDF VI, SEEPZ, Andheri (E) Mumbai 400 096, India
>
<http://www.datamatics.com/> www.datamatics.com
Americas | Asia | Australia | Europe
RE: AW: Open Dot CMIS Query
Posted by Kaushik <ka...@datamatics.com>.
Hi Jay,
Please find the screenshot below. As you can see that the Mime Type is set for the document.
I have also attached the cs file for your reference.
Awaiting for your response.
Thanks and Regards,
Kaushik Choudhari
Information Management Practice
Description: http://insight.datamaticstech.com/esig/Line.gif
Description: aaa
(D):+91 22 6102 5242
(M):+91 887 904 4619
Datamatics Global Services Limited
Unit 190, SDF VI, SEEPZ, Andheri (E) Mumbai 400 096, India
www.datamatics.com
Americas | Asia | Australia | Europe
<http://www.facebook.com/pages/Datamatics-Global-Services/268835395007> Description: Facebook
<http://twitter.com/dgsl> Description: Twitter
<http://www.linkedin.com/companies/datamatics-global-services> Description: LinkIn
From: Kaushik Choudhari [mailto:kaushik.choudhari@datamatics.com]
Sent: Tuesday, February 26, 2013 8:12 AM
To: Jay Brown
Cc: dev@chemistry.apache.org; kus@bel-it.de
Subject: Re: AW: Open Dot CMIS Query
Yes I can see the mime type correctly set.
But when I am downloading the file, I don't see it in the save as box
Kaushik
Sent from my iPhone
On 25-Feb-2013, at 11:38 PM, Jay Brown <ja...@us.ibm.com> wrote:
When you look at the properties (for the doc you have created) from Chemistry Workbench do you see that the mime type has been set correctly?
For example here is a screen shot of workbench properties for a document on a test FileNet 5.1 CMIS system. Note the mime type value for this text file.
<46683336.gif>
Jay Brown
Senior Engineer, ECM Development
IBM Software Group
jay.brown@us.ibm.com
<graycol.gif>"Kaushik" ---02/25/2013 09:03:17 AM---Hi,
<ecblank.gif>
From:
<ecblank.gif>
"Kaushik" <ka...@datamatics.com>
<ecblank.gif>
To:
<ecblank.gif>
Jay Brown/Costa Mesa/IBM@IBMUS,
<ecblank.gif>
Cc:
<ecblank.gif>
<de...@chemistry.apache.org>, <ku...@bel-it.de>, <ka...@datamatics.com>
<ecblank.gif>
Date:
<ecblank.gif>
02/25/2013 09:03 AM
<ecblank.gif>
Subject:
<ecblank.gif>
RE: FW: AW: Open Dot CMIS Query
_____
Hi,
I have a query regarding Add Document. I am using IBM FileNet 5.1. When I am adding document, I am not getting any error but when I download the file I uploaded through CMIS, I don’t get the file extension in the Save As Dialog box.
Please help me. These are all the parameters I am adding while creating the document.
ContentStream oContentStream = new ContentStream();
oContentStream.FileName = sFileName;
oContentStream.MimeType = sMimeType;
oContentStream.Length = oStream.Length;
oContentStream.Stream = oStream;
// Add document into repository
sDocID = oSession.Binding.GetObjectService().CreateDocument(oSession.RepositoryInfo.Id, oProperties, sFolderID, oContentStream, null, null, null, null,null);
Let me know if I am doing anything wrong.
Thanks and Regards,
Kaushik Choudhari
Information Management Practice
<46959101.gif>
<46965286.jpg>
(D):+91 22 6102 5242
(M):+91 887 904 4619
Datamatics Global Services Limited
Unit 190, SDF VI, SEEPZ, Andheri (E) Mumbai 400 096, India
www.datamatics.com
Americas | Asia | Australia | Europe
<http://www.facebook.com/pages/Datamatics-Global-Services/268835395007> <46289528.gif>
<http://twitter.com/dgsl> <46732620.gif>
<http://www.linkedin.com/companies/datamatics-global-services> <46086841.gif>
From: Jay Brown [mailto:jay.brown@us.ibm.com]
Sent: Friday, November 02, 2012 10:05 PM
Cc: dev@chemistry.apache.org; kaushik.choudhari@datamatics.com; kus@bel-it.de; 'prashant patel'
Subject: RE: FW: AW: Open Dot CMIS Query
Not sure I understand the problem about the dll. The 'getting started with dotCMIS' page here:
<http://chemistry.apache.org/dotnet/getting-started-with-dotcmis.html> http://chemistry.apache.org/dotnet/getting-started-with-dotcmis.html
has an simple example showing how to create a document and specify the document subclass that you wish to create.
Here is the example with the pertinent line highlighted. (below)
If you have (for example a doc subclass who's id = invoice_doc then the line would read:
properties[PropertyIds.ObjectTypeId] = "invoice_doc";
Creating a document
IFolder folder = ...
IDictionary<string, object> properties = new Dictionary<string, object>();
properties[PropertyIds.Name] = "Hello World Document";
properties[PropertyIds.ObjectTypeId] = "cmis:document";
byte[] content = UTF8Encoding.UTF8.GetBytes("Hello World!");
ContentStream contentStream = new ContentStream();
contentStream.FileName = "hello-world.txt";
contentStream.MimeType = "text/plain";
contentStream.Length = content.Length;
contentStream.Stream = new MemoryStream(content);
IDocument doc = folder.CreateDocument(properties, contentStream, null);
Jay Brown
Senior Engineer, ECM Development
IBM Software Group
<ma...@us.ibm.com> jay.brown@us.ibm.com
<graycol.gif>"Kaushik" ---11/02/2012 05:11:44 AM---Hi,
<46710854.gif>
From:
<46342087.gif>
"Kaushik" <ka...@datamatics.com>
<46710854.gif>
To:
<46342087.gif>
Jay Brown/Costa Mesa/IBM@IBMUS,
<46710854.gif>
Cc:
<46342087.gif>
< <ma...@chemistry.apache.org> dev@chemistry.apache.org>, < <ma...@bel-it.de> kus@bel-it.de>, "'prashant patel'" < <ma...@datamatics.com> prashant.patel@datamatics.com>, < <ma...@datamatics.com> kaushik.choudhari@datamatics.com>
<46710854.gif>
Date:
<46342087.gif>
11/02/2012 05:11 AM
<46710854.gif>
Subject:
<46342087.gif>
RE: FW: AW: Open Dot CMIS Query
_____
Hi,
We were able to get the getObject function working along with the Update properties function.
But when we are creating the document using the createDocument function, we need to create document of specific document class and not of a general document class.
We are not able to get this function in the dll. Please help us to resolve this issue.
Thanks and Regards,
Kaushik Choudhari
Information Management Practice
<46342087.gif>
<46342087.gif>
(D):+91 22 6102 5242
(M):+91 887 904 4619
Datamatics Global Services Limited
Unit 190, SDF VI, SEEPZ, Andheri (E) Mumbai 400 096, India
www.datamatics.com
Americas | Asia | Australia | Europe
<ecblank.gif>
<ecblank.gif>
<ecblank.gif>
From: prashant patel [ <ma...@datamatics.com> mailto:prashant.patel@datamatics.com]
Sent: Friday, November 02, 2012 11:57 AM
To: <ma...@us.ibm.com> jay.brown@us.ibm.com
Cc: <ma...@chemistry.apache.org> dev@chemistry.apache.org; <ma...@bel-it.de> kus@bel-it.de; Kaushik Choudhari
Subject: Re: FW: AW: Open Dot CMIS Query
Hi Jay,
We have tried two methods to get objects from FileNet repository, however only one of them is working.
Here is the code snippet.
// Method 1 : Working
IObjectData result = oSession.Binding.GetObjectService().GetObject(oSession.RepositoryInfo.Id, "idd_68481FB4-13EE-4269-88A4-8C195BCC03A2", "*", true, IncludeRelationshipsFlag.Both, "*", true, true, null);
// Method 2 : Not working
IDocument oDocument = oSession.GetObject("idd_68481FB4-13EE-4269-88A4-8C195BCC03A2") as IDocument;
Any help on this will be appreciated.
Thanks,
Prashant Patel
On Fri, 11/02/2012 11:10 AM, "Kaushik" <kaushik.choudhari@datamatics.com> wrote:
Thanks and Regards,
Kaushik Choudhari
Information Management Practice
<46342087.gif>
<46342087.gif>
(D):+91 22 6102 5242
(M):+91 887 904 4619
Datamatics Global Services Limited
Unit 190, SDF VI, SEEPZ, Andheri (E) Mumbai 400 096, India
www.datamatics.com
Americas | Asia | Australia | Europe
<ecblank.gif>
<ecblank.gif>
<ecblank.gif>
From: Jay Brown [ <ma...@us.ibm.com> mailto:jay.brown@us.ibm.com]
Sent: Thursday, November 01, 2012 7:45 PM
Cc: <ma...@chemistry.apache.org> dev@chemistry.apache.org; Kaushik Choudhari; <ma...@bel-it.de> kus@bel-it.de
Subject: Re: AW: Open Dot CMIS Query
That object ID that you are using in your example is native P8 GUID instead of a P8 CMIS object ID.
Generally you need to obtain the id of the document from CMIS via Query or some soft of navigation operation (like getFolderChildren) then retrieve the Id to examine the object.
For example you would first get the root folder id from the repository info then use that as your navigation starting point.
If you need to convert a native GUID to a P8 CMIS id you will need to strip off the '{' 's and add the type prefix. (note this method is not supported since the spec requires that you tread ids as opaque identifiers.)
P8 CMIS ids look like this: (idf_ for folders idd_ for docuuments)
idf_BAD138F0-8BCA-4A1D-A000-0E182A34B3D9
idd_A3AD74A0-EB00-43AF-BED4-76B113563D08
Note: The book "CMIS and Apache Chemistry in Action" from Manning covers all of these CMIS issues in detail. ( <http://www.manning.com/mueller/> http://www.manning.com/mueller/)
Jay Brown
Senior Engineer, ECM Development
IBM Software Group
<ma...@us.ibm.com> jay.brown@us.ibm.com
prashant patel ---11/01/2012 02:27:14 AM---Hi, We have changed our code to work with AtomPub instead of web service. Now we are able to connect
From:
prashant patel < <ma...@datamatics.com> prashant.patel@datamatics.com>
To:
<ma...@bel-it.de> kus@bel-it.de,
Cc:
Kaushik Choudhari < <ma...@datamatics.com> kaushik.choudhari@datamatics.com>, " <ma...@chemistry.apache.org> dev@chemistry.apache.org" < <ma...@chemistry.apache.org> dev@chemistry.apache.org>
Date:
11/01/2012 02:27 AM
Subject:
Re: AW: Open Dot CMIS Query
_____
Hi,
We have changed our code to work with AtomPub instead of web service. Now we are able to connect to repository and create session but when we try to find folder/document from repository, it says "Not Found".
Here is the code snippet that we are using.
// Dictionary object which will hold various paramaters
Dictionary<string, string> oParameters = new Dictionary<string, string>();
oParameters[SessionParameter.BindingType] = BindingType.AtomPub;
oParameters[SessionParameter.AtomPubUrl] = " <https://p851-kaushik.p851domain.com:9443/fncmis/resources/Service> https://p851-kaushik.p851domain.com:9443/fncmis/resources/Service";
oParameters[SessionParameter.User] = "P8Admin";
oParameters[SessionParameter.Password] = "******";
// Create new instance of SessionFactory class
SessionFactory oFactory = SessionFactory.NewInstance();
ISession oSession = oFactory.GetRepositories(oParameters)[0].CreateSession();
// Get Document using ObjectID
IDocument oDocument = oSession.GetObject("{D234E670-74E2-4A75-ABB4-BAAFB001F029}") as IDocument;
Any help on this one will be appreciated.
Thanks,
Prashant Patel.
On Wed, 10/31/2012 05:50 PM, Kai-Uwe Schmidt < <ma...@bel-it.de> kus@bel-it.de> wrote:
>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
Assuming that
<https://p851-kaushik:9443/fncmis/RepositoryService?wsdl> https://p851-kaushik:9443/fncmis/RepositoryService?wsdl works from your browser and gets you the wsdl file I would guess you use a self-signed certificate. The browser would show you a warning. If so make that certificate trusted.
Von: Kaushik [ <ma...@datamatics.com> mailto:kaushik.choudhari@datamatics.com]
>
Gesendet: Mittwoch, 31. Oktober 2012 13:05
>
An: Kai-Uwe Schmidt; <ma...@chemistry.apache.org> dev@chemistry.apache.org
>
Cc: 'prashant patel'; <ma...@datamatics.com> kaushik.choudhari@datamatics.com
>
Betreff: RE: Open Dot CMIS Query
Hi,
We have made the application as https. Please see the error below. Also find the attached
Please find the error that we are getting after changing the http URL.
Below is the updated code.
oParameters[SessionParameter.WebServicesAclService] =
" <https://p851-kaushik:9443/fncmis/ACLService?wsdl> https://p851-kaushik:9443/fncmis/ACLService?wsdl";
oParameters[SessionParameter.WebServicesRepositoryService] =
" <https://p851-kaushik:9443/fncmis/RepositoryService?wsdl> https://p851-kaushik:9443/fncmis/RepositoryService?wsdl";
oParameters[SessionParameter.WebServicesDiscoveryService] =
" <https://p851-kaushik:9443/fncmis/DiscoveryService?wsdl> https://p851-kaushik:9443/fncmis/DiscoveryService?wsdl";
oParameters[SessionParameter.WebServicesMultifilingService] =
" <https://p851-kaushik:9443/fncmis/MultiFilingService?wsdl> https://p851-kaushik:9443/fncmis/MultiFilingService?wsdl";
oParameters[SessionParameter.WebServicesNavigationService] =
" <https://p851-kaushik:9443/fncmis/NavigationService?wsdl> https://p851-kaushik:9443/fncmis/NavigationService?wsdl";
oParameters[SessionParameter.WebServicesPolicyService] =
" <https://p851-kaushik:9443/fncmis/PolicyService?wsdl> https://p851-kaushik:9443/fncmis/PolicyService?wsdl";
oParameters[SessionParameter.WebServicesObjectService] =
" <https://p851-kaushik:9443/fncmis/ObjectService?wsdl> https://p851-kaushik:9443/fncmis/ObjectService?wsdl";
oParameters[SessionParameter.WebServicesRelationshipService] =
" <https://p851-kaushik:9443/fncmis/RelationshipService?wsdl> https://p851-kaushik:9443/fncmis/RelationshipService?wsdl";
oParameters[SessionParameter.WebServicesVersioningService] =
" <https://p851-kaushik:9443/fncmis/VersioningService?wsdl> https://p851-kaushik:9443/fncmis/VersioningService?wsdl";
oParameters[SessionParameter.User] =
"P8Admin";
oParameters[SessionParameter.Password] =
"Password123";
oParameters[SessionParameter.RepositoryId] =
"{99AB015C-C370-431E-9467-AB6BB0628B21}";
// Create new instance of SessionFactory class
SessionFactory oFactory =
SessionFactory.NewInstance();
//IList<IRepository> oList = oFactory.GetRepositories(oParameters);
// Create Session
ISession oSession = oFactory.GetRepositories(oParameters)[0].CreateSession();
Please let us know.
Thanks and Regards,
Kaushik Choudhari
>
Information Management Practice
(D):+91 22 6102 5242
>
(M):+91 887 904 4619
Datamatics Global Services Limited
>
Unit 190, SDF VI, SEEPZ, Andheri (E) Mumbai 400 096, India
>
<http://www.datamatics.com/> www.datamatics.com
Americas | Asia | Australia | Europe
From: Kai-Uwe Schmidt [ <ma...@bel-it.de> mailto:kus@bel-it.de]
>
Sent: Wednesday, October 31, 2012 1:42 PM
>
To: <ma...@chemistry.apache.org> dev@chemistry.apache.org;
<ma...@datamatics.com> kaushik.choudhari@datamatics.com
>
Cc: prashant patel
>
Subject: AW: Open Dot CMIS Query
You need to make a https connection. .net don’t allow to send clear text password via http.
Von: Kaushik [ <ma...@datamatics.com> mailto:kaushik.choudhari@datamatics.com]
>
Gesendet: Mittwoch, 31. Oktober 2012 06:31
>
An: <ma...@chemistry.apache.org> dev@chemistry.apache.org
>
Cc: prashant patel; <ma...@datamatics.com> kaushik.choudhari@datamatics.com
>
Betreff: Open Dot CMIS Query
Hi,
We are trying to use Open Dot CMIS to connect to IBM FileNet 5.1 using IBM CMIS.
Please find the code snippet below with the error we are getting.
ISession oSession;
>
>
// Dictionary object which will hold various paramaters
>
Dictionary<string, string> oParameters = new Dictionary<string, string>();
>
>
oParameters[SessionParameter.BindingType] = BindingType.WebServices;
>
oParameters[SessionParameter.WebServicesRepositoryService] = " <http://172.29.254.182:9080/fncmis/RepositoryService?wsdl> http://172.29.254.182:9080/fncmis/RepositoryService?wsdl";
>
oParameters[SessionParameter.WebServicesAclService] = " <http://172.29.254.182:9080/fncmis/ACLService?wsdl> http://172.29.254.182:9080/fncmis/ACLService?wsdl";
>
oParameters[SessionParameter.WebServicesDiscoveryService] = " <http://172.29.254.182:9080/fncmis/DiscoveryService?wsdl> http://172.29.254.182:9080/fncmis/DiscoveryService?wsdl";
>
oParameters[SessionParameter.WebServicesMultifilingService] = " <http://172.29.254.182:9080/fncmis/MultiFilingService?wsdl> http://172.29.254.182:9080/fncmis/MultiFilingService?wsdl";
>
oParameters[SessionParameter.WebServicesNavigationService] = " <http://172.29.254.182:9080/fncmis/NavigationService?wsdl> http://172.29.254.182:9080/fncmis/NavigationService?wsdl";
>
oParameters[SessionParameter.WebServicesPolicyService] = " <http://172.29.254.182:9080/fncmis/PolicyService?wsdl> http://172.29.254.182:9080/fncmis/PolicyService?wsdl";
>
oParameters[SessionParameter.WebServicesObjectService] = " <http://172.29.254.182:9080/fncmis/ObjectService?wsdl> http://172.29.254.182:9080/fncmis/ObjectService?wsdl";
>
oParameters[SessionParameter.WebServicesRelationshipService] = " <http://172.29.254.182:9080/fncmis/RelationshipService?wsdl> http://172.29.254.182:9080/fncmis/RelationshipService?wsdl";
>
oParameters[SessionParameter.WebServicesVersioningService] = " <http://172.29.254.182:9080/fncmis/VersioningService?wsdl> http://172.29.254.182:9080/fncmis/VersioningService?wsdl";
>
>
oParameters[SessionParameter.User] = "P8Admin";
>
oParameters[SessionParameter.Password] = "******";
>
oParameters[SessionParameter.RepositoryId] = "{99AB015C-C370-431E-9467-AB6BB0628B21}";
>
>
// Create new instance of SessionFactory class
>
SessionFactory oFactory = SessionFactory.NewInstance();
>
>
// Create Session
>
oSession = oFactory.GetRepositories(oParameters)[0].CreateSession();
>
>
>
We are getting following error.
>
>
“Error: The provided URI scheme 'http' is invalid; expected 'https'.
>
Parameter name: via”.
I guess the URL
<http://172.29.254.182:9080/fncmis/ACLService?wsdl> http://172.29.254.182:9080/fncmis/ACLService?wsdl" is not available.
Please help us to resolve it.
Thanks and Regards,
Kaushik Choudhari
>
Information Management Practice
(D):+91 22 6102 5242
>
(M):+91 887 904 4619
Datamatics Global Services Limited
>
Unit 190, SDF VI, SEEPZ, Andheri (E) Mumbai 400 096, India
>
<http://www.datamatics.com/> www.datamatics.com
Americas | Asia | Australia | Europe
Re: AW: Open Dot CMIS Query
Posted by Kaushik Choudhari <ka...@datamatics.com>.
Yes I can see the mime type correctly set.
But when I am downloading the file, I don't see it in the save as box
Kaushik
Sent from my iPhone
On 25-Feb-2013, at 11:38 PM, Jay Brown <ja...@us.ibm.com> wrote:
> When you look at the properties (for the doc you have created) from Chemistry Workbench do you see that the mime type has been set correctly?
>
> For example here is a screen shot of workbench properties for a document on a test FileNet 5.1 CMIS system. Note the mime type value for this text file.
>
> <46683336.gif>
>
>
> Jay Brown
> Senior Engineer, ECM Development
> IBM Software Group
> jay.brown@us.ibm.com
>
> <graycol.gif>"Kaushik" ---02/25/2013 09:03:17 AM---Hi,
>
> <ecblank.gif>
> From:
> <ecblank.gif>
> "Kaushik" <ka...@datamatics.com>
> <ecblank.gif>
> To:
> <ecblank.gif>
> Jay Brown/Costa Mesa/IBM@IBMUS,
> <ecblank.gif>
> Cc:
> <ecblank.gif>
> <de...@chemistry.apache.org>, <ku...@bel-it.de>, <ka...@datamatics.com>
> <ecblank.gif>
> Date:
> <ecblank.gif>
> 02/25/2013 09:03 AM
> <ecblank.gif>
> Subject:
> <ecblank.gif>
> RE: FW: AW: Open Dot CMIS Query
>
>
>
> Hi,
>
> I have a query regarding Add Document. I am using IBM FileNet 5.1. When I am adding document, I am not getting any error but when I download the file I uploaded through CMIS, I don’t get the file extension in the Save As Dialog box.
>
> Please help me. These are all the parameters I am adding while creating the document.
>
> ContentStream oContentStream = new ContentStream();
> oContentStream.FileName = sFileName;
> oContentStream.MimeType = sMimeType;
> oContentStream.Length = oStream.Length;
> oContentStream.Stream = oStream;
>
> // Add document into repository
> sDocID = oSession.Binding.GetObjectService().CreateDocument(oSession.RepositoryInfo.Id, oProperties, sFolderID, oContentStream, null, null, null, null,null);
>
> Let me know if I am doing anything wrong.
>
> Thanks and Regards,
> Kaushik Choudhari
> Information Management Practice
> <46959101.gif>
> <46965286.jpg> (D):+91 22 6102 5242
> (M):+91 887 904 4619 Datamatics Global Services Limited
> Unit 190, SDF VI, SEEPZ, Andheri (E) Mumbai 400 096, India
> www.datamatics.com
> Americas | Asia | Australia | Europe <46289528.gif> <46732620.gif> <46086841.gif>
>
>
> From: Jay Brown [mailto:jay.brown@us.ibm.com]
> Sent: Friday, November 02, 2012 10:05 PM
> Cc: dev@chemistry.apache.org; kaushik.choudhari@datamatics.com; kus@bel-it.de; 'prashant patel'
> Subject: RE: FW: AW: Open Dot CMIS Query
>
> Not sure I understand the problem about the dll. The 'getting started with dotCMIS' page here:
>
> http://chemistry.apache.org/dotnet/getting-started-with-dotcmis.html
>
> has an simple example showing how to create a document and specify the document subclass that you wish to create.
>
> Here is the example with the pertinent line highlighted. (below)
>
> If you have (for example a doc subclass who's id = invoice_doc then the line would read:
>
> properties[PropertyIds.ObjectTypeId] = "invoice_doc";
>
> Creating a document
> IFolder folder = ...
>
> IDictionary<string, object> properties = new Dictionary<string, object>();
> properties[PropertyIds.Name] = "Hello World Document";
> properties[PropertyIds.ObjectTypeId] = "cmis:document";
>
> byte[] content = UTF8Encoding.UTF8.GetBytes("Hello World!");
>
> ContentStream contentStream = new ContentStream();
> contentStream.FileName = "hello-world.txt";
> contentStream.MimeType = "text/plain";
> contentStream.Length = content.Length;
> contentStream.Stream = new MemoryStream(content);
>
> IDocument doc = folder.CreateDocument(properties, contentStream, null);
>
>
> Jay Brown
> Senior Engineer, ECM Development
> IBM Software Group
> jay.brown@us.ibm.com
>
> <graycol.gif>"Kaushik" ---11/02/2012 05:11:44 AM---Hi,
>
> <46710854.gif>
> From:
> <46342087.gif>
> "Kaushik" <ka...@datamatics.com>
> <46710854.gif>
> To:
> <46342087.gif>
> Jay Brown/Costa Mesa/IBM@IBMUS,
> <46710854.gif>
> Cc:
> <46342087.gif>
> <de...@chemistry.apache.org>, <ku...@bel-it.de>, "'prashant patel'" <pr...@datamatics.com>, <ka...@datamatics.com>
> <46710854.gif>
> Date:
> <46342087.gif>
> 11/02/2012 05:11 AM
> <46710854.gif>
> Subject:
> <46342087.gif>
> RE: FW: AW: Open Dot CMIS Query
>
>
>
>
> Hi,
>
> We were able to get the getObject function working along with the Update properties function.
>
> But when we are creating the document using the createDocument function, we need to create document of specific document class and not of a general document class.
>
> We are not able to get this function in the dll. Please help us to resolve this issue.
>
> Thanks and Regards,
> Kaushik Choudhari
> Information Management Practice
> <46342087.gif>
> <46342087.gif> (D):+91 22 6102 5242
> (M):+91 887 904 4619 Datamatics Global Services Limited
> Unit 190, SDF VI, SEEPZ, Andheri (E) Mumbai 400 096, India
> www.datamatics.com
> Americas | Asia | Australia | Europe <ecblank.gif> <ecblank.gif> <ecblank.gif>
>
>
> From: prashant patel [mailto:prashant.patel@datamatics.com]
> Sent: Friday, November 02, 2012 11:57 AM
> To: jay.brown@us.ibm.com
> Cc: dev@chemistry.apache.org; kus@bel-it.de; Kaushik Choudhari
> Subject: Re: FW: AW: Open Dot CMIS Query
>
> Hi Jay,
>
> We have tried two methods to get objects from FileNet repository, however only one of them is working.
>
> Here is the code snippet.
>
> // Method 1 : Working
> IObjectData result = oSession.Binding.GetObjectService().GetObject(oSession.RepositoryInfo.Id, "idd_68481FB4-13EE-4269-88A4-8C195BCC03A2", "*", true, IncludeRelationshipsFlag.Both, "*", true, true, null);
>
> // Method 2 : Not working
> IDocument oDocument = oSession.GetObject("idd_68481FB4-13EE-4269-88A4-8C195BCC03A2") as IDocument;
>
> Any help on this will be appreciated.
>
> Thanks,
>
> Prashant Patel
>
> On Fri, 11/02/2012 11:10 AM, "Kaushik" <kaushik.choudhari@datamatics.com> wrote:
>
>
> Thanks and Regards,
> Kaushik Choudhari
> Information Management Practice
> <46342087.gif>
> <46342087.gif> (D):+91 22 6102 5242
> (M):+91 887 904 4619 Datamatics Global Services Limited
> Unit 190, SDF VI, SEEPZ, Andheri (E) Mumbai 400 096, India
> www.datamatics.com
> Americas | Asia | Australia | Europe <ecblank.gif> <ecblank.gif> <ecblank.gif>
>
>
> From: Jay Brown [mailto:jay.brown@us.ibm.com]
> Sent: Thursday, November 01, 2012 7:45 PM
> Cc: dev@chemistry.apache.org; Kaushik Choudhari; kus@bel-it.de
> Subject: Re: AW: Open Dot CMIS Query
>
> That object ID that you are using in your example is native P8 GUID instead of a P8 CMIS object ID.
>
> Generally you need to obtain the id of the document from CMIS via Query or some soft of navigation operation (like getFolderChildren) then retrieve the Id to examine the object.
>
> For example you would first get the root folder id from the repository info then use that as your navigation starting point.
>
> If you need to convert a native GUID to a P8 CMIS id you will need to strip off the '{' 's and add the type prefix. (note this method is not supported since the spec requires that you tread ids as opaque identifiers.)
> P8 CMIS ids look like this: (idf_ for folders idd_ for docuuments)
> idf_BAD138F0-8BCA-4A1D-A000-0E182A34B3D9
> idd_A3AD74A0-EB00-43AF-BED4-76B113563D08
>
> Note: The book "CMIS and Apache Chemistry in Action" from Manning covers all of these CMIS issues in detail. (http://www.manning.com/mueller/)
>
> Jay Brown
> Senior Engineer, ECM Development
> IBM Software Group
> jay.brown@us.ibm.com
>
> prashant patel ---11/01/2012 02:27:14 AM---Hi, We have changed our code to work with AtomPub instead of web service. Now we are able to connect
>
> From:
>
> prashant patel <pr...@datamatics.com>
> To:
>
> kus@bel-it.de,
> Cc:
>
> Kaushik Choudhari <ka...@datamatics.com>, "dev@chemistry.apache.org" <de...@chemistry.apache.org>
> Date:
>
> 11/01/2012 02:27 AM
> Subject:
>
> Re: AW: Open Dot CMIS Query
>
>
> Hi,
>
> We have changed our code to work with AtomPub instead of web service. Now we are able to connect to repository and create session but when we try to find folder/document from repository, it says "Not Found".
>
> Here is the code snippet that we are using.
>
>
> // Dictionary object which will hold various paramaters
> Dictionary<string, string> oParameters = new Dictionary<string, string>();
>
> oParameters[SessionParameter.BindingType] = BindingType.AtomPub;
> oParameters[SessionParameter.AtomPubUrl] = " https://p851-kaushik.p851domain.com:9443/fncmis/resources/Service";
>
> oParameters[SessionParameter.User] = "P8Admin";
> oParameters[SessionParameter.Password] = "******";
>
>
> // Create new instance of SessionFactory class
> SessionFactory oFactory = SessionFactory.NewInstance();
>
> ISession oSession = oFactory.GetRepositories(oParameters)[0].CreateSession();
>
>
> // Get Document using ObjectID
> IDocument oDocument = oSession.GetObject("{D234E670-74E2-4A75-ABB4-BAAFB001F029}") as IDocument;
>
>
> Any help on this one will be appreciated.
>
>
> Thanks,
> Prashant Patel.
>
> On Wed, 10/31/2012 05:50 PM, Kai-Uwe Schmidt <ku...@bel-it.de> wrote:
> >
>
>
>
> v\:* {behavior:url(#default#VML);}
> o\:* {behavior:url(#default#VML);}
> w\:* {behavior:url(#default#VML);}
> .shape {behavior:url(#default#VML);}
>
>
>
>
>
>
>
>
>
> Assuming that
> https://p851-kaushik:9443/fncmis/RepositoryService?wsdl works from your browser and gets you the wsdl file I would guess you use a self-signed certificate. The browser would show you a warning. If so make that certificate trusted.
>
>
>
>
>
>
>
>
> Von: Kaushik [mailto:kaushik.choudhari@datamatics.com]
>
> >
> Gesendet: Mittwoch, 31. Oktober 2012 13:05
> >
> An: Kai-Uwe Schmidt; dev@chemistry.apache.org
> >
> Cc: 'prashant patel'; kaushik.choudhari@datamatics.com
> >
> Betreff: RE: Open Dot CMIS Query
>
>
>
>
>
> Hi,
>
>
>
> We have made the application as https. Please see the error below. Also find the attached
>
>
>
>
> Please find the error that we are getting after changing the http URL.
>
>
>
>
> Below is the updated code.
>
>
>
> oParameters[SessionParameter.WebServicesAclService] =
> "https://p851-kaushik:9443/fncmis/ACLService?wsdl";
>
> oParameters[SessionParameter.WebServicesRepositoryService] =
> "https://p851-kaushik:9443/fncmis/RepositoryService?wsdl";
>
> oParameters[SessionParameter.WebServicesDiscoveryService] =
> "https://p851-kaushik:9443/fncmis/DiscoveryService?wsdl";
>
> oParameters[SessionParameter.WebServicesMultifilingService] =
> "https://p851-kaushik:9443/fncmis/MultiFilingService?wsdl";
>
> oParameters[SessionParameter.WebServicesNavigationService] =
> "https://p851-kaushik:9443/fncmis/NavigationService?wsdl";
>
> oParameters[SessionParameter.WebServicesPolicyService] =
> "https://p851-kaushik:9443/fncmis/PolicyService?wsdl";
>
> oParameters[SessionParameter.WebServicesObjectService] =
> "https://p851-kaushik:9443/fncmis/ObjectService?wsdl";
>
> oParameters[SessionParameter.WebServicesRelationshipService] =
> "https://p851-kaushik:9443/fncmis/RelationshipService?wsdl";
>
> oParameters[SessionParameter.WebServicesVersioningService] =
> "https://p851-kaushik:9443/fncmis/VersioningService?wsdl";
>
>
>
> oParameters[SessionParameter.User] =
> "P8Admin";
>
> oParameters[SessionParameter.Password] =
> "Password123";
>
> oParameters[SessionParameter.RepositoryId] =
> "{99AB015C-C370-431E-9467-AB6BB0628B21}";
>
>
>
>
> // Create new instance of SessionFactory class
>
>
> SessionFactory oFactory =
> SessionFactory.NewInstance();
>
>
>
>
> //IList<IRepository> oList = oFactory.GetRepositories(oParameters);
>
>
>
>
> // Create Session
>
>
> ISession oSession = oFactory.GetRepositories(oParameters)[0].CreateSession();
>
>
>
>
>
> Please let us know.
>
>
>
>
>
>
>
>
> Thanks and Regards,
>
> Kaushik Choudhari
>
> >
> Information Management Practice
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> (D):+91 22 6102 5242
>
> >
> (M):+91 887 904 4619
>
>
>
> Datamatics Global Services Limited
> >
> Unit 190, SDF VI, SEEPZ, Andheri (E) Mumbai 400 096, India
> >
> www.datamatics.com
>
>
>
>
>
>
>
>
>
> Americas | Asia | Australia | Europe
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> From: Kai-Uwe Schmidt [mailto:kus@bel-it.de]
>
> >
> Sent: Wednesday, October 31, 2012 1:42 PM
> >
> To: dev@chemistry.apache.org;
> kaushik.choudhari@datamatics.com
> >
> Cc: prashant patel
> >
> Subject: AW: Open Dot CMIS Query
>
>
>
>
>
> You need to make a https connection. .net don’t allow to send clear text password via http.
>
>
>
>
>
>
>
>
>
>
> Von: Kaushik [mailto:kaushik.choudhari@datamatics.com]
>
> >
> Gesendet: Mittwoch, 31. Oktober 2012 06:31
> >
> An: dev@chemistry.apache.org
> >
> Cc: prashant patel; kaushik.choudhari@datamatics.com
> >
> Betreff: Open Dot CMIS Query
>
>
>
>
>
> Hi,
>
>
>
> We are trying to use Open Dot CMIS to connect to IBM FileNet 5.1 using IBM CMIS.
>
>
>
>
> Please find the code snippet below with the error we are getting.
>
>
>
> ISession oSession;
>
> >
>
>
> >
> // Dictionary object which will hold various paramaters
>
> >
> Dictionary<string, string> oParameters = new Dictionary<string, string>();
>
> >
>
>
> >
> oParameters[SessionParameter.BindingType] = BindingType.WebServices;
>
> >
> oParameters[SessionParameter.WebServicesRepositoryService] = "http://172.29.254.182:9080/fncmis/RepositoryService?wsdl";
>
> >
> oParameters[SessionParameter.WebServicesAclService] = "http://172.29.254.182:9080/fncmis/ACLService?wsdl";
>
> >
> oParameters[SessionParameter.WebServicesDiscoveryService] = "http://172.29.254.182:9080/fncmis/DiscoveryService?wsdl";
>
> >
> oParameters[SessionParameter.WebServicesMultifilingService] = "http://172.29.254.182:9080/fncmis/MultiFilingService?wsdl";
>
> >
> oParameters[SessionParameter.WebServicesNavigationService] = "http://172.29.254.182:9080/fncmis/NavigationService?wsdl";
>
> >
> oParameters[SessionParameter.WebServicesPolicyService] = "http://172.29.254.182:9080/fncmis/PolicyService?wsdl";
>
> >
> oParameters[SessionParameter.WebServicesObjectService] = "http://172.29.254.182:9080/fncmis/ObjectService?wsdl";
>
> >
> oParameters[SessionParameter.WebServicesRelationshipService] = "http://172.29.254.182:9080/fncmis/RelationshipService?wsdl";
>
> >
> oParameters[SessionParameter.WebServicesVersioningService] = "http://172.29.254.182:9080/fncmis/VersioningService?wsdl";
>
> >
>
>
> >
> oParameters[SessionParameter.User] = "P8Admin";
>
> >
> oParameters[SessionParameter.Password] = "******";
>
> >
> oParameters[SessionParameter.RepositoryId] = "{99AB015C-C370-431E-9467-AB6BB0628B21}";
>
> >
>
>
> >
> // Create new instance of SessionFactory class
>
> >
> SessionFactory oFactory = SessionFactory.NewInstance();
>
> >
>
>
> >
> // Create Session
>
> >
> oSession = oFactory.GetRepositories(oParameters)[0].CreateSession();
>
> >
>
>
> >
>
>
> >
> We are getting following error.
>
> >
>
>
> >
> “Error: The provided URI scheme 'http' is invalid; expected 'https'.
>
> >
> Parameter name: via”.
>
>
>
>
> I guess the URL
> http://172.29.254.182:9080/fncmis/ACLService?wsdl" is not available.
>
>
>
> Please help us to resolve it.
>
>
>
>
>
>
>
> Thanks and Regards,
>
> Kaushik Choudhari
>
> >
> Information Management Practice
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> (D):+91 22 6102 5242
>
> >
> (M):+91 887 904 4619
>
>
>
> Datamatics Global Services Limited
> >
> Unit 190, SDF VI, SEEPZ, Andheri (E) Mumbai 400 096, India
> >
> www.datamatics.com
>
>
>
>
>
>
>
>
>
> Americas | Asia | Australia | Europe
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
RE: FW: AW: Open Dot CMIS Query
Posted by Jay Brown <ja...@us.ibm.com>.
When you look at the properties (for the doc you have created) from
Chemistry Workbench do you see that the mime type has been set correctly?
For example here is a screen shot of workbench properties for a document on
a test FileNet 5.1 CMIS system. Note the mime type value for this text
file.
Jay Brown
Senior Engineer, ECM Development
IBM Software Group
jay.brown@us.ibm.com
|------------>
| From: |
|------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|"Kaushik" <ka...@datamatics.com> |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To: |
|------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|Jay Brown/Costa Mesa/IBM@IBMUS, |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Cc: |
|------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|<de...@chemistry.apache.org>, <ku...@bel-it.de>, <ka...@datamatics.com> |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date: |
|------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|02/25/2013 09:03 AM |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject: |
|------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|RE: FW: AW: Open Dot CMIS Query |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
Hi,
I have a query regarding Add Document. I am using IBM FileNet 5.1. When I
am adding document, I am not getting any error but when I download the file
I uploaded through CMIS, I don’t get the file extension in the Save As
Dialog box.
Please help me. These are all the parameters I am adding while creating the
document.
ContentStream oContentStream = new ContentStream();
oContentStream.FileName = sFileName;
oContentStream.MimeType = sMimeType;
oContentStream.Length = oStream.Length;
oContentStream.Stream = oStream;
// Add document into repository
sDocID = oSession.Binding.GetObjectService
().CreateDocument(oSession.RepositoryInfo.Id, oProperties, sFolderID,
oContentStream, null, null, null, null,null);
Let me know if I am doing anything wrong.
Thanks and Regards,
Kaushik Choudhari
Information Management Practice
Description:
http://insight.datamaticstech.com/esig/Line.gif
Description: aaa (D):+91 22 6102 Datamatics Global
5242 Services Limited
(M):+91 887 904 Unit 190, SDF VI,
4619 SEEPZ, Andheri (E)
Mumbai 400 096,
India
www.datamatics.com
Americas | Asia | Australia | Europe
Description: Facebook
Description: Twitter
Description: LinkIn
From: Jay Brown [mailto:jay.brown@us.ibm.com]
Sent: Friday, November 02, 2012 10:05 PM
Cc: dev@chemistry.apache.org; kaushik.choudhari@datamatics.com;
kus@bel-it.de; 'prashant patel'
Subject: RE: FW: AW: Open Dot CMIS Query
Not sure I understand the problem about the dll. The 'getting started
with dotCMIS' page here:
http://chemistry.apache.org/dotnet/getting-started-with-dotcmis.html
has an simple example showing how to create a document and specify the
document subclass that you wish to create.
Here is the example with the pertinent line highlighted. (below)
If you have (for example a doc subclass who's id = invoice_doc then the
line would read:
properties[PropertyIds.ObjectTypeId] = "invoice_doc";
Creating a document
IFolder folder = ...
IDictionary<string, object> properties = new Dictionary<string, object>();
properties[PropertyIds.Name] = "Hello World Document";
properties[PropertyIds.ObjectTypeId] = "cmis:document";
byte[] content = UTF8Encoding.UTF8.GetBytes("Hello World!");
ContentStream contentStream = new ContentStream();
contentStream.FileName = "hello-world.txt";
contentStream.MimeType = "text/plain";
contentStream.Length = content.Length;
contentStream.Stream = new MemoryStream(content);
IDocument doc = folder.CreateDocument(properties, contentStream, null);
Jay Brown
Senior Engineer, ECM Development
IBM Software Group
jay.brown@us.ibm.com
Inactive hide details for "Kaushik" ---11/02/2012 05:11:44 AM---Hi,
"Kaushik" ---11/02/2012 05:11:44 AM---Hi,
From "Kaushik" <ka...@datamatics.com>
:
To: Jay Brown/Costa Mesa/IBM@IBMUS,
Cc: <de...@chemistry.apache.org>, <ku...@bel-it.de>, "'prashant
patel'" <pr...@datamatics.com>, <
kaushik.choudhari@datamatics.com>
Date 11/02/2012 05:11 AM
:
Subj RE: FW: AW: Open Dot CMIS Query
ect:
Hi,
We were able to get the getObject function working along with the Update
properties function.
But when we are creating the document using the createDocument function, we
need to create document of specific document class and not of a general
document class.
We are not able to get this function in the dll. Please help us to resolve
this issue.
Thanks and Regards,
Kaushik Choudhari
Information Management Practice
(D):+91 22 Datamatics Global
6102 5242 Services Limited
(M):+91 887 Unit 190, SDF VI,
904 4619 SEEPZ, Andheri (E)
Mumbai 400 096,
India
www.datamatics.com
Americas | Asia | Australia |
Europe
From: prashant patel [mailto:prashant.patel@datamatics.com]
Sent: Friday, November 02, 2012 11:57 AM
To: jay.brown@us.ibm.com
Cc: dev@chemistry.apache.org; kus@bel-it.de; Kaushik Choudhari
Subject: Re: FW: AW: Open Dot CMIS Query
Hi Jay,
We have tried two methods to get objects from FileNet repository, however
only one of them is working.
Here is the code snippet.
// Method 1 : Working
IObjectData result = oSession.Binding.GetObjectService().GetObject
(oSession.RepositoryInfo.Id, "idd_68481FB4-13EE-4269-88A4-8C195BCC03A2",
"*", true, IncludeRelationshipsFlag.Both, "*", true, true, null);
// Method 2 : Not working
IDocument oDocument = oSession.GetObject
("idd_68481FB4-13EE-4269-88A4-8C195BCC03A2") as IDocument;
Any help on this will be appreciated.
Thanks,
Prashant Patel
On Fri, 11/02/2012 11:10 AM, "Kaushik"
<kaushik.choudhari@datamatics.com> wrote:
Thanks and Regards,
Kaushik Choudhari
Information Management Practice
(D):+91 22 Datamatics Global
6102 5242 Services Limited
(M):+91 887 Unit 190, SDF VI,
904 4619 SEEPZ, Andheri (E)
Mumbai 400 096,
India
www.datamatics.com
Americas | Asia | Australia |
Europe
From: Jay Brown [mailto:jay.brown@us.ibm.com]
Sent: Thursday, November 01, 2012 7:45 PM
Cc: dev@chemistry.apache.org; Kaushik Choudhari; kus@bel-it.de
Subject: Re: AW: Open Dot CMIS Query
That object ID that you are using in your example is native P8 GUID instead
of a P8 CMIS object ID.
Generally you need to obtain the id of the document from CMIS via Query or
some soft of navigation operation (like getFolderChildren) then retrieve
the Id to examine the object.
For example you would first get the root folder id from the repository info
then use that as your navigation starting point.
If you need to convert a native GUID to a P8 CMIS id you will need to strip
off the '{' 's and add the type prefix. (note this method is not supported
since the spec requires that you tread ids as opaque identifiers.)
P8 CMIS ids look like this: (idf_ for folders idd_ for docuuments)
idf_BAD138F0-8BCA-4A1D-A000-0E182A34B3D9
idd_A3AD74A0-EB00-43AF-BED4-76B113563D08
Note: The book "CMIS and Apache Chemistry in Action" from Manning covers
all of these CMIS issues in detail. (http://www.manning.com/mueller/)
Jay Brown
Senior Engineer, ECM Development
IBM Software Group
jay.brown@us.ibm.com
prashant patel ---11/01/2012 02:27:14 AM---Hi, We have changed our code to
work with AtomPub instead of web service. Now we are able to connect
From
: prashant patel <pr...@datamatics.com>
To:
kus@bel-it.de,
Cc:
Kaushik Choudhari <ka...@datamatics.com>, "
dev@chemistry.apache.org" <de...@chemistry.apache.org>
Date
: 11/01/2012 02:27 AM
Subj
ect: Re: AW: Open Dot CMIS Query
Hi,
We have changed our code to work with AtomPub instead of web service. Now
we are able to connect to repository and create session but when we try to
find folder/document from repository, it says "Not Found".
Here is the code snippet that we are using.
// Dictionary object which will hold various paramaters
Dictionary<string, string> oParameters = new Dictionary<string, string>();
oParameters[SessionParameter.BindingType] = BindingType.AtomPub;
oParameters[SessionParameter.AtomPubUrl] = "
https://p851-kaushik.p851domain.com:9443/fncmis/resources/Service";
oParameters[SessionParameter.User] = "P8Admin";
oParameters[SessionParameter.Password] = "******";
// Create new instance of SessionFactory class
SessionFactory oFactory = SessionFactory.NewInstance();
ISession oSession = oFactory.GetRepositories(oParameters)[0].CreateSession
();
// Get Document using ObjectID
IDocument oDocument = oSession.GetObject
("{D234E670-74E2-4A75-ABB4-BAAFB001F029}") as IDocument;
Any help on this one will be appreciated.
Thanks,
Prashant Patel.
On Wed, 10/31/2012 05:50 PM, Kai-Uwe Schmidt <ku...@bel-it.de> wrote:
>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
Assuming that
https://p851-kaushik:9443/fncmis/RepositoryService?wsdl works from your
browser and gets you the wsdl file I would guess you use a self-signed
certificate. The browser would show you a warning. If so make that
certificate trusted.
Von: Kaushik [mailto:kaushik.choudhari@datamatics.com]
>
Gesendet: Mittwoch, 31. Oktober 2012 13:05
>
An: Kai-Uwe Schmidt; dev@chemistry.apache.org
>
Cc: 'prashant patel'; kaushik.choudhari@datamatics.com
>
Betreff: RE: Open Dot CMIS Query
Hi,
We have made the application as https. Please see the error below. Also
find the attached
Please find the error that we are getting after changing the http URL.
Below is the updated code.
oParameters[SessionParameter.WebServicesAclService] =
"https://p851-kaushik:9443/fncmis/ACLService?wsdl";
oParameters[SessionParameter.WebServicesRepositoryService] =
"https://p851-kaushik:9443/fncmis/RepositoryService?wsdl";
oParameters[SessionParameter.WebServicesDiscoveryService] =
"https://p851-kaushik:9443/fncmis/DiscoveryService?wsdl";
oParameters[SessionParameter.WebServicesMultifilingService] =
"https://p851-kaushik:9443/fncmis/MultiFilingService?wsdl";
oParameters[SessionParameter.WebServicesNavigationService] =
"https://p851-kaushik:9443/fncmis/NavigationService?wsdl";
oParameters[SessionParameter.WebServicesPolicyService] =
"https://p851-kaushik:9443/fncmis/PolicyService?wsdl";
oParameters[SessionParameter.WebServicesObjectService] =
"https://p851-kaushik:9443/fncmis/ObjectService?wsdl";
oParameters[SessionParameter.WebServicesRelationshipService] =
"https://p851-kaushik:9443/fncmis/RelationshipService?wsdl";
oParameters[SessionParameter.WebServicesVersioningService] =
"https://p851-kaushik:9443/fncmis/VersioningService?wsdl";
oParameters[SessionParameter.User] =
"P8Admin";
oParameters[SessionParameter.Password] =
"Password123";
oParameters[SessionParameter.RepositoryId] =
"{99AB015C-C370-431E-9467-AB6BB0628B21}";
// Create new instance of SessionFactory class
SessionFactory oFactory =
SessionFactory.NewInstance();
//IList<IRepository> oList = oFactory.GetRepositories(oParameters);
// Create Session
ISession oSession = oFactory.GetRepositories(oParameters)[0].CreateSession
();
Please let us know.
Thanks and Regards,
Kaushik Choudhari
>
Information Management Practice
(D):+91 22 6102 5242
>
(M):+91 887 904 4619
Datamatics Global Services Limited
>
Unit 190, SDF VI, SEEPZ, Andheri (E) Mumbai 400 096, India
>
www.datamatics.com
Americas | Asia | Australia | Europe
From: Kai-Uwe Schmidt [mailto:kus@bel-it.de]
>
Sent: Wednesday, October 31, 2012 1:42 PM
>
To: dev@chemistry.apache.org;
kaushik.choudhari@datamatics.com
>
Cc: prashant patel
>
Subject: AW: Open Dot CMIS Query
You need to make a https connection. .net don’t allow to send clear text
password via http.
Von: Kaushik [mailto:kaushik.choudhari@datamatics.com]
>
Gesendet: Mittwoch, 31. Oktober 2012 06:31
>
An: dev@chemistry.apache.org
>
Cc: prashant patel; kaushik.choudhari@datamatics.com
>
Betreff: Open Dot CMIS Query
Hi,
We are trying to use Open Dot CMIS to connect to IBM FileNet 5.1 using IBM
CMIS.
Please find the code snippet below with the error we are getting.
ISession oSession;
>
>
// Dictionary object which will hold various paramaters
>
Dictionary<string, string> oParameters = new
Dictionary<string, string>();
>
>
oParameters[SessionParameter.BindingType] =
BindingType.WebServices;
>
oParameters[SessionParameter.WebServicesRepositoryService] =
"http://172.29.254.182:9080/fncmis/RepositoryService?wsdl";
>
oParameters[SessionParameter.WebServicesAclService] = "
http://172.29.254.182:9080/fncmis/ACLService?wsdl";
>
oParameters[SessionParameter.WebServicesDiscoveryService] = "
http://172.29.254.182:9080/fncmis/DiscoveryService?wsdl";
>
oParameters[SessionParameter.WebServicesMultifilingService] =
"http://172.29.254.182:9080/fncmis/MultiFilingService?wsdl";
>
oParameters[SessionParameter.WebServicesNavigationService] =
"http://172.29.254.182:9080/fncmis/NavigationService?wsdl";
>
oParameters[SessionParameter.WebServicesPolicyService] = "
http://172.29.254.182:9080/fncmis/PolicyService?wsdl";
>
oParameters[SessionParameter.WebServicesObjectService] = "
http://172.29.254.182:9080/fncmis/ObjectService?wsdl";
>
oParameters[SessionParameter.WebServicesRelationshipService]
= "http://172.29.254.182:9080/fncmis/RelationshipService?wsdl";
>
oParameters[SessionParameter.WebServicesVersioningService] =
"http://172.29.254.182:9080/fncmis/VersioningService?wsdl";
>
>
oParameters[SessionParameter.User] = "P8Admin";
>
oParameters[SessionParameter.Password] = "******";
>
oParameters[SessionParameter.RepositoryId] =
"{99AB015C-C370-431E-9467-AB6BB0628B21}";
>
>
// Create new instance of SessionFactory class
>
SessionFactory oFactory = SessionFactory.NewInstance();
>
>
// Create Session
>
oSession = oFactory.GetRepositories
(oParameters)[0].CreateSession();
>
>
>
We are getting following error.
>
>
“Error: The provided URI scheme 'http' is invalid; expected 'https'.
>
Parameter name: via”.
I guess the URL
http://172.29.254.182:9080/fncmis/ACLService?wsdl" is not available.
Please help us to resolve it.
Thanks and Regards,
Kaushik Choudhari
>
Information Management Practice
(D):+91 22 6102 5242
>
(M):+91 887 904 4619
Datamatics Global Services Limited
>
Unit 190, SDF VI, SEEPZ, Andheri (E) Mumbai 400 096, India
>
www.datamatics.com
Americas | Asia | Australia | Europe