Return-Path: X-Original-To: apmail-axis-java-user-archive@www.apache.org Delivered-To: apmail-axis-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0272F102E3 for ; Fri, 26 Jul 2013 03:40:14 +0000 (UTC) Received: (qmail 30609 invoked by uid 500); 26 Jul 2013 03:40:13 -0000 Delivered-To: apmail-axis-java-user-archive@axis.apache.org Received: (qmail 30235 invoked by uid 500); 26 Jul 2013 03:40:05 -0000 Mailing-List: contact java-user-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@axis.apache.org Delivered-To: mailing list java-user@axis.apache.org Received: (qmail 30226 invoked by uid 99); 26 Jul 2013 03:40:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jul 2013 03:40:03 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of robert.dodier@gmail.com designates 209.85.215.44 as permitted sender) Received: from [209.85.215.44] (HELO mail-la0-f44.google.com) (209.85.215.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jul 2013 03:39:58 +0000 Received: by mail-la0-f44.google.com with SMTP id fo12so848578lab.17 for ; Thu, 25 Jul 2013 20:39:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=0jUslxdjeVstI+jkM68o8XvkpRzf1+ettoMwKq/4SrE=; b=o4OueR3HI4z9ftb44TNIISLoB278/h+vpLTeNKuefsBX141Pud0lu3bpq7c1tjf3QL P4OvWLakQ07MDdp628IUFF/Alig4YinqjDiNO1i1jMJv7n+VneZBvIQgULCdj2Bhbz3h F9FbcHaeeryIxXR6Ou6Hjmm8JWq5fHaOjuXDe96h+npC3n259Uycj0KOrU6FZ7Bdj0D2 Ljn+Gtk5OG6/7EDumU/0e+j5VhGzbrr372pUoTspxyVMIb1Ebm3UwDhgWeyXvFZ/X2md eWM8Ojr2WxBPq9RcRVT+VvrTMovpJbK8PlDUIjLOomL1UHxCWHpN95N7l61oY7fmaQH/ bCJA== MIME-Version: 1.0 X-Received: by 10.152.42.171 with SMTP id p11mr20261421lal.79.1374809977887; Thu, 25 Jul 2013 20:39:37 -0700 (PDT) Received: by 10.112.131.202 with HTTP; Thu, 25 Jul 2013 20:39:37 -0700 (PDT) Date: Thu, 25 Jul 2013 20:39:37 -0700 Message-ID: Subject: Having trouble submitting credentials for Basic authentication From: Robert Dodier To: java-user@axis.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hello, I am working with Axis2 1.6.1 and I have a web service client which was generated via wsdl2java.sh. Here's the code I've added to assign the username and password: HttpTransportProperties.Authenticator A = new HttpTransportProperties.Authenticator (); A.setUsername ("myusername"); A.setPassword ("mypassword"); _serviceClient.getOptions ().setProperty (HTTPConstants.AUTHENTICATE, A); The server wants Basic authentication, which seems to be submitted successfully, but the server still returns 401 -- unauthorized after the client responds to the authentication challenge. Can anyone tell what is going on? Here is a link to the relevant bits of the log file: http://pastebin.com/wG80PS7k I see that the client first POSTs without authentication which is rejected by the server, as expected, and then the client POSTs again with Basic authentication. But that second attempt fails too. The return code is 401 and the accompanying error message sent by the server says "100 - System Error occured". I guess it's possible I've gotten the user name & password wrong -- should I expect a more informative error message? or not? Thanks for any light you can shed on this problem. Robert Dodier --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org For additional commands, e-mail: java-user-help@axis.apache.org