Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 17EBF200C49 for ; Fri, 17 Mar 2017 09:59:52 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 16745160B80; Fri, 17 Mar 2017 08:59:52 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 615E5160B6D for ; Fri, 17 Mar 2017 09:59:51 +0100 (CET) Received: (qmail 82474 invoked by uid 500); 17 Mar 2017 08:59:49 -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 Delivered-To: moderator for dev@chemistry.apache.org Received: (qmail 73070 invoked by uid 99); 17 Mar 2017 08:55:07 -0000 X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.879 X-Spam-Level: *** X-Spam-Status: No, score=3.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=nopgTGQARRpY6fAP8KggjcJKDRXw7isc2b5V4UryQ0c=; b=M/o2HVU82yDXUxTSkCXSVafIHme0qGEfxcs74eL6K/+qvYas9dq5DRzSZLNWsaosYo tNGI9+isFU/OT3GXnUw3IesUCkJbsaJO/k3PUtbg3QnEl9SDRwfruZyxGEioSzY2wXGV 1mVynkIcqTw6rHUPkTosNGGcd7mJDDsQfHZDEwGjyLLvhZUH8slDZokRk9R1cJhpdPRi ao1D4SKTYIr6pAsMkyW/Ev5nw3KIRQ0Oaz7OkDKM+S6XV8sc1gEwSyXbXfcL7NuzZ5aE +XKjkTV+Tm3/Qcc+6D4jH4+ouviBNtaALIV2Fx1EHf+IGiUH5gVoBXbCyn+Mhct3ajvZ KdJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=nopgTGQARRpY6fAP8KggjcJKDRXw7isc2b5V4UryQ0c=; b=dEZxdAfUgbjuMI+RXx+uwvrMpBuBynt/j0MhcxF1wBloSJaP1llQqWk1mYRLGMwPj0 R7cnrjEdhuJNOnSTmz3PF2fWAlYSEWbUiYQ8QlkbmNegk1iE34SqS4ExqsDD7DlnN1k0 UhIXwtgFQ1jhXUnSX6fqX6COxr7iISwvdcLI93JF00I3s17c09IupAolpXDpZJHb9ase gP5xRF1AnIyscct8jJhyFg0wCUXNry8GKM2dIDjDOopqmjss3IlXTdhNvD/cIkskptB+ yJTyaG3M0hqBJyfygsuStcsrEN6x6OAtid/Cgch5snoYBm7fHcLOSHRwplnlojhq5VA1 Qr8A== X-Gm-Message-State: AFeK/H0G6Y7Hb18kJHFlxKWIGoWZimL8dwxw7f8FKlcAk6/4e8V5UEyS0fj/OqwrvBa4TrXc+pH4cc8a34KZaA== X-Received: by 10.31.99.1 with SMTP id x1mr5890955vkb.65.1489740903150; Fri, 17 Mar 2017 01:55:03 -0700 (PDT) MIME-Version: 1.0 From: Xi Wang Date: Fri, 17 Mar 2017 09:55:02 +0100 Message-ID: Subject: Authentication error connect to CMIS Web Services endpoint with using DotCMIS v0.7 To: dev@chemistry.apache.org Content-Type: multipart/alternative; boundary=94eb2c07b17856fc4c054ae9556c archived-at: Fri, 17 Mar 2017 08:59:52 -0000 --94eb2c07b17856fc4c054ae9556c Content-Type: text/plain; charset=UTF-8 Hi all, I tried to use the CMIS Web Service endpoint demo released in *https://chemistry.apache.org/dotnet/getting-started-with-dotcmis.html * to access to my database, but I got the authentication error as below: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Basic realm="Authentication required"'. I'm sure I have specified the username&pwd correctly to my C# application, please see the code below: using DotCMIS; using DotCMIS.Client; using DotCMIS.Client.Impl; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; /* */ namespace testDotCmis { class Program { static void Main(string[] args) { var parameters = new Dictionary(); parameters[SessionParameter.BindingType] = BindingType.WebServices; parameters[SessionParameter.WebServicesRepositoryService] = "https://[host address]/repositoryservice?wsdl"; parameters[SessionParameter.WebServicesAclService] = "https://[host address]/aclservice?wsdl"; parameters[SessionParameter.WebServicesDiscoveryService] = "https://[host address]/discoveryservice?wsdl"; parameters[SessionParameter.WebServicesMultifilingService] = "https://[host address]/multifilingservice?wsdl"; parameters[SessionParameter.WebServicesNavigationService] = "https://[host address]/navigationservice?wsdl"; parameters[SessionParameter.WebServicesObjectService] = "https://[host address]/objectservice?wsdl"; parameters[SessionParameter.WebServicesPolicyService] = "https://[host address]/policyservice?wsdl"; parameters[SessionParameter.WebServicesRelationshipService] = "https://[host address]/relationshipservice?wsdl"; parameters[SessionParameter.WebServicesVersioningService] = "https://[host address]/versioningservice?wsdl"; parameters[SessionParameter.User] = "[username]"; parameters[SessionParameter.Password] = "[pwd]"; SessionFactory factory = SessionFactory.NewInstance(); var repoInfoList = factory.GetRepositories(parameters); Console.WriteLine("Test"); Console.ReadKey(); } } } I also tested with Atompub&browser, they worked perfectly. var parameters = new Dictionary(); parameters[SessionParameter.BindingType] = BindingType.Browser; parameters[SessionParameter.BrowserUrl] = "https://[host address]/browser"; parameters[SessionParameter.User] = "[username]"; parameters[SessionParameter.Password] = "[pwd]"; SessionFactory factory = SessionFactory.NewInstance(); var repoInfoList = factory.GetRepositories(parameters); Could you help with this, please? -- Best Regards. Xi ----------------------------------------------------------------- Polytech Nice-Sophia Antipolis Western University 41 RUE DIDOT 75014 Paris, France Linkin: Xi WANG Tel: *(+33)6 66 47 84 59 <%28%2B33%296%2066%2047%2084%2059>* Mail: *wang.xi.polytech@gmail.com * --94eb2c07b17856fc4c054ae9556c--