Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 69231 invoked from network); 8 Apr 2009 14:16:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Apr 2009 14:16:40 -0000 Received: (qmail 92477 invoked by uid 500); 8 Apr 2009 14:16:38 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 92413 invoked by uid 500); 8 Apr 2009 14:16:38 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 92404 invoked by uid 99); 8 Apr 2009 14:16:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 14:16:38 +0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=MISSING_SUBJECT,NORMAL_HTTP_TO_IP,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [213.190.82.43] (HELO mail.devoteam.com) (213.190.82.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 14:16:29 +0000 From: Robbe Fabrice To: "axis-user@ws.apache.org" Date: Wed, 8 Apr 2009 16:16:07 +0200 Subject: Thread-Index: Acm4VI9TYl/rqDGyTfW4/G8U8O1jzw== Message-ID: Accept-Language: fr-FR X-MS-Has-Attach: X-MS-TNEF-Correlator: x-cr-puzzleid: {78CAA978-3B8A-4881-84C6-62572D49C8EF} x-cr-hashedpuzzle: BbDi DHZR DviK D2Hh Ep1m HIXt HsJe IOyF Ip7r I5SM JFPI JvDA KDk5 KPDJ Kd7Q MBdo;1;YQB4AGkAcwAtAHUAcwBlAHIAQAB3AHMALgBhAHAAYQBjAGgAZQAuAG8AcgBnAA==;Sosha1_v1;7;{78CAA978-3B8A-4881-84C6-62572D49C8EF};ZgBhAGIAcgBpAGMAZQAuAHIAbwBiAGIAZQBAAGQAZQB2AG8AdABlAGEAbQAuAGMAbwBtAA==;Wed, 08 Apr 2009 14:16:07 GMT;; acceptlanguage: fr-FR MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Content-Language: fr-FR X-Virus-Checked: Checked by ClamAV on apache.org Hi, I'am trying to use Axis 2 to call MSSQL Report Server Web Services. Authent= ication is done with IIS and NTLM. I found a lot of code sample but nothing work, I always have a 401 : Acces = Denied.=20 Does anyone succed using NTLM with Axis 2 ?=20 I also tried to use a proxy parameter in struts2.xml but it doesn't work. Here is my code:=20 ReportingServiceStub stub =3D new ReportingServiceStub("http://127.0.0.1/Re= portServer/ReportService.asmx"); =A0=A0=A0=A0=A0=A0=A0=20 HttpTransportProperties.Authenticator auth =3D new HttpTransportProperties.= Authenticator(); =A0=A0=A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=A0=A0 auth.setUsername("user"); =A0=A0=A0=A0=A0=A0=A0 auth.setPassword("password"); =A0=A0=A0=A0=A0=A0=A0 auth.setHost("server.fr.domain.com"); =A0=A0=A0=A0=A0=A0=A0 auth.setDomain("domain"); =A0=A0=A0=A0=A0=A0=A0 auth.setPreemptiveAuthentication(false); =A0=A0=A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=A0=A0 List authPrefs =3D new ArrayList(1); =A0=A0=A0=A0=A0=A0=A0 authPrefs.add(AuthPolicy.NTLM); =A0=A0=A0=A0=A0=A0=A0 auth.setAuthSchemes(authPrefs); =A0=A0=A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=A0=A0 stub._getServiceClient().getOptions().setProperty(HTT= PConstants.AUTHENTICATE, auth); =A0=A0=A0=A0=A0=A0=A0=20 =A0=A0=A0 =A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0 com.microsoft.schemas.sqlserver.reporting.reportingse= rvices.ReportingServiceStub.GetReportDefinition getReportDefinition602=3D =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 (com.microsoft.schemas.sqlserver.reportin= g.reportingservices.ReportingServiceStub.GetReportDefinition)getTestObject(= com.microsoft.schemas.sqlserver.reporting.reportingservices.ReportingServic= eStub.GetReportDefinition.class); =A0=A0=A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0 getReportDefinition602.setRepor= t("/Galaxy/utilisateur"); =A0=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0 assertNotNull(stub.GetReportDef= inition(getReportDefinition602)); Thanks