Return-Path: Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: (qmail 5953 invoked from network); 10 Dec 2010 16:00:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Dec 2010 16:00:20 -0000 Received: (qmail 64253 invoked by uid 500); 10 Dec 2010 16:00:19 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 63920 invoked by uid 500); 10 Dec 2010 16:00:19 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 63901 invoked by uid 99); 10 Dec 2010 16:00:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Dec 2010 16:00:18 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [64.85.173.253] (HELO server.dankulp.com) (64.85.173.253) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Dec 2010 16:00:10 +0000 Received: by server.dankulp.com (Postfix, from userid 5000) id 542321872BD; Fri, 10 Dec 2010 10:59:49 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on server.dankulp.com X-Spam-Level: X-Msg-File: /tmp/mailfilter-dev@cxf.apache.org.yq0UMZ1ruA Received: from dilbert.dankulp.com (c-24-91-72-253.hsd1.ma.comcast.net [24.91.72.253]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.dankulp.com (Postfix) with ESMTPSA id 76C6C1872B9; Fri, 10 Dec 2010 10:59:48 -0500 (EST) From: Daniel Kulp To: dev@cxf.apache.org Subject: Re: BASIC http Auth Date: Fri, 10 Dec 2010 11:00:33 -0500 User-Agent: KMail/1.13.5 (Linux/2.6.36; KDE/4.5.4; x86_64; ; ) Cc: "phperret@gmail.com" References: <1291989830677-3300334.post@n5.nabble.com> In-Reply-To: <1291989830677-3300334.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201012101100.34251.dkulp@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-102.9 required=3.0 tests=ALL_TRUSTED,BAYES_00, SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.3.1 On Friday 10 December 2010 9:03:50 am phperret@gmail.com wrote: > Hello, > > How a basic authentifiaction should be set up ? > > I suppose it's by using the ClientProxy but there is no documentation about > that. This is part of the JAX-WS spec. If you have the proxy object, you can just do: ((BindingProvider)proxy).getRequestContext() .put(BindingProvider.USERNAME_PROPERTY, "dkulp"); ((BindingProvider)proxy).getRequestContext() .put(BindingProvider.PASSWORD_PROPERTY, "mypassword"); to provide the credentials for the BasicAuth. -- Daniel Kulp dkulp@apache.org http://dankulp.com/blog