Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3B2F6DA7B for ; Thu, 1 Nov 2012 09:27:14 +0000 (UTC) Received: (qmail 6114 invoked by uid 500); 1 Nov 2012 09:27:14 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 5937 invoked by uid 500); 1 Nov 2012 09:27:13 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 5826 invoked by uid 99); 1 Nov 2012 09:27:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Nov 2012 09:27:12 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,NORMAL_HTTP_TO_IP,SPF_PASS,T_REMOTE_IMAGE,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [115.113.181.96] (HELO dgsmailweb2.datamatics.com) (115.113.181.96) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Nov 2012 09:27:07 +0000 Received: from mail1.datamatics.com (172.1.201.196) by dgsmailweb2.datamatics.com (Axigen) with (AES256-SHA encrypted) ESMTPS id 388638; Thu, 1 Nov 2012 14:56:20 +0530 Received: from dgsmaildbs196 (127.0.0.1) by dgsmaildbs196 (Axigen) with ESMTPSA id 3655D2; Thu, 1 Nov 2012 15:00:33 +0530 Received: from [172.20.1.87] by datamatics.com with HTTP; Thu, 1 Nov 2012 15:00:33 +0530 From: prashant patel Date: Thu, 1 Nov 2012 15:00:33 +0530 X-Mailer: Axigen WebMail To: kus@bel-it.de Cc: Kaushik Choudhari , "dev@chemistry.apache.org" Message-ID: <1351762233568360500@datamatics.com> In-Reply-To: References: <007e01cdb728$fa1271a0$ee3754e0$@datamatics.com> <00e001cdb75f$f49f2920$dddd7b60$@datamatics.com> Subject: Re: AW: Open Dot CMIS Query Importance: Normal MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="===axigen=2513281297678799312655963416413799756547=axigen===" X-Virus-Checked: Checked by ClamAV on apache.org --===axigen=2513281297678799312655963416413799756547=axigen=== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, We have changed our code to work with AtomPub instead of web service. Now w= e are able to connect to repository and create session but when we try to f= ind 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 oParameters =3D new Dictionary(= ); oParameters[SessionParameter.BindingType] =3D BindingType.AtomPub; oParameters[SessionParameter.AtomPubUrl] =3D " https://p851-kaushik.p851do= main.com:9443/fncmis/resources/Service"; oParameters[SessionParameter.User] =3D "P8Admin"; oParameters[SessionParameter.Password] =3D "******"; // Create new instance of SessionFactory class SessionFactory oFactory =3D SessionFactory.NewInstance(); ISession oSession =3D oFactory.GetRepositories(oParameters)[0].CreateSessio= n(); // Get Document using ObjectID IDocument oDocument =3D oSession.GetObject("{D234E670-74E2-4A75-ABB4-BAAFB= 001F029}") as IDocument; Any help on this one will be appreciated. Thanks, Prashant Patel.=20 On Wed, 10/31/2012 05:50 PM, Kai-Uwe Schmidt wrote: >=20 v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} Assuming that=20 https://p851-kaushik:9443/fncmis/RepositoryService?wsdl works from your bro= wser and gets you the wsdl file I would guess you use a self-signed certifi= cate. The browser would show you a warning. If so make that certificate tru= sted. =20 =20 Von: Kaushik [mailto:kaushik.choudhari@datamatics.com] >=20 Gesendet: Mittwoch, 31. Oktober 2012 13:05 >=20 An: Kai-Uwe Schmidt; dev@chemistry.apache.org >=20 Cc: 'prashant patel'; kaushik.choudhari@datamatics.com >=20 Betreff: RE: Open Dot CMIS Query =20 Hi, =20 We have made the application as https. Please see the error below. Also fin= d the attached =20 Please find the error that we are getting after changing the http URL. =20 Below is the updated code. =20 oParameters[SessionParameter.WebServicesAclService] =3D "https://p851-kaushik:9443/fncmis/ACLService?wsdl"; oParameters[SessionParameter.WebServicesRepositoryService] =3D "https://p851-kaushik:9443/fncmis/RepositoryService?wsdl"; oParameters[SessionParameter.WebServicesDiscoveryService] =3D "https://p851-kaushik:9443/fncmis/DiscoveryService?wsdl"; oParameters[SessionParameter.WebServicesMultifilingService] =3D "https://p851-kaushik:9443/fncmis/MultiFilingService?wsdl"; oParameters[SessionParameter.WebServicesNavigationService] =3D "https://p851-kaushik:9443/fncmis/NavigationService?wsdl"; oParameters[SessionParameter.WebServicesPolicyService] =3D "https://p851-kaushik:9443/fncmis/PolicyService?wsdl"; oParameters[SessionParameter.WebServicesObjectService] =3D "https://p851-kaushik:9443/fncmis/ObjectService?wsdl"; oParameters[SessionParameter.WebServicesRelationshipService] =3D "https://p851-kaushik:9443/fncmis/RelationshipService?wsdl"; oParameters[SessionParameter.WebServicesVersioningService] =3D "https://p851-kaushik:9443/fncmis/VersioningService?wsdl"; =20 oParameters[SessionParameter.User] =3D "P8Admin"; oParameters[SessionParameter.Password] =3D "Password123"; oParameters[SessionParameter.RepositoryId] =3D "{99AB015C-C370-431E-9467-AB6BB0628B21}"; =20 =20 // Create new instance of SessionFactory class =20 SessionFactory oFactory =3D=20 SessionFactory.NewInstance(); =20 =20 //IList oList =3D oFactory.GetRepositories(oParameters); =20 =20 // Create Session =20 ISession oSession =3D oFactory.GetRepositories(oParameters)[0].CreateSessi= on(); =20 =20 Please let us know. =20 Thanks and Regards, Kaushik Choudhari >=20 Information Management Practice (D):+91 22 6102 5242 =20 >=20 (M):+91 887 904 4619 Datamatics Global Services Limited >=20 Unit 190, SDF VI, SEEPZ, Andheri (E) Mumbai 400 096, India=20 >=20 www.datamatics.com Americas | Asia | Australia | Europe =20 =20 =20 From: Kai-Uwe Schmidt [mailto:kus@bel-it.de] >=20 Sent: Wednesday, October 31, 2012 1:42 PM >=20 To: dev@chemistry.apache.org; kaushik.choudhari@datamatics.com >=20 Cc: prashant patel >=20 Subject: AW: Open Dot CMIS Query =20 You need to make a https connection. .net don=E2=80=99t allow to send clear= text password via http. =20 =20 =20 Von: Kaushik [mailto:kaushik.choudhari@datamatics.com] >=20 Gesendet: Mittwoch, 31. Oktober 2012 06:31 >=20 An: dev@chemistry.apache.org >=20 Cc: prashant patel; kaushik.choudhari@datamatics.com >=20 Betreff: Open Dot CMIS Query =20 Hi, =20 We are trying to use Open Dot CMIS to connect to IBM FileNet 5.1 using IBM = CMIS. =20 Please find the code snippet below with the error we are getting. =20 ISession oSession; >=20 =20 >=20 // Dictionary object which will hold various paramaters >=20 Dictionary oParameters =3D new Dictionary(); >=20 =20 >=20 oParameters[SessionParameter.BindingType] =3D BindingType.W= ebServices; >=20 oParameters[SessionParameter.WebServicesRepositoryService] = =3D "http://172.29.254.182:9080/fncmis/RepositoryService?wsdl"; >=20 oParameters[SessionParameter.WebServicesAclService] =3D "ht= tp://172.29.254.182:9080/fncmis/ACLService?wsdl"; >=20 oParameters[SessionParameter.WebServicesDiscoveryService] = =3D "http://172.29.254.182:9080/fncmis/DiscoveryService?wsdl"; >=20 oParameters[SessionParameter.WebServicesMultifilingService]= =3D "http://172.29.254.182:9080/fncmis/MultiFilingService?wsdl"; >=20 oParameters[SessionParameter.WebServicesNavigationService] = =3D "http://172.29.254.182:9080/fncmis/NavigationService?wsdl"; >=20 oParameters[SessionParameter.WebServicesPolicyService] =3D = "http://172.29.254.182:9080/fncmis/PolicyService?wsdl"; >=20 oParameters[SessionParameter.WebServicesObjectService] =3D = "http://172.29.254.182:9080/fncmis/ObjectService?wsdl"; >=20 oParameters[SessionParameter.WebServicesRelationshipService= ] =3D "http://172.29.254.182:9080/fncmis/RelationshipService?wsdl"; >=20 oParameters[SessionParameter.WebServicesVersioningService] = =3D "http://172.29.254.182:9080/fncmis/VersioningService?wsdl"; >=20 =20 >=20 oParameters[SessionParameter.User] =3D "P8Admin"; >=20 oParameters[SessionParameter.Password] =3D "******"; >=20 oParameters[SessionParameter.RepositoryId] =3D "{99AB015C-C= 370-431E-9467-AB6BB0628B21}"; >=20 =20 >=20 // Create new instance of SessionFactory class >=20 SessionFactory oFactory =3D SessionFactory.NewInstance(); >=20 =20 >=20 // Create Session >=20 oSession =3D oFactory.GetRepositories(oParameters)[0].Creat= eSession(); >=20 =20 >=20 =20 >=20 We are getting following error. >=20 =20 >=20 =E2=80=9CError: The provided URI scheme 'http' is invalid; expected 'https'= . >=20 Parameter name: via=E2=80=9D. =20 I guess the URL=20 http://172.29.254.182:9080/fncmis/ACLService?wsdl" is not available. =20 Please help us to resolve it. =20 Thanks and Regards, Kaushik Choudhari >=20 Information Management Practice (D):+91 22 6102 5242 =20 >=20 (M):+91 887 904 4619 Datamatics Global Services Limited >=20 Unit 190, SDF VI, SEEPZ, Andheri (E) Mumbai 400 096, India=20 >=20 www.datamatics.com Americas | Asia | Australia | Europe =20 =20 =20 --===axigen=2513281297678799312655963416413799756547=axigen===--