I took a brief look at 
http://msdn.microsoft.com/en-us/library/reportserviceauthentication.authenticationmode.aspx

which states I would need to
determine Namespace which will be used (this MUST BE accessible by server and 
client)
e.g.
http://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservicesthen
 you'll need to determine the Authentication provider you will be using
-Forms
-None
-Passport
-Windows

has the WebService Provider provided you a WSDL?

Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.






> From: fabrice.ro...@devoteam.com
> To: axis-user@ws.apache.org
> Date: Wed, 8 Apr 2009 16:16:07 +0200
> Subject: 
> 
> Hi,
> I'am trying to use Axis 2 to call MSSQL Report Server Web Services. 
> Authentication is done with IIS and NTLM.
> I found a lot of code sample but nothing work, I always have a 401 : Acces 
> Denied. 
> Does anyone succed using NTLM with Axis 2 ? 
> I also tried to use a proxy parameter in struts2.xml but it doesn't work.
> Here is my code: 
> 
> ReportingServiceStub stub = new 
> ReportingServiceStub("http://127.0.0.1/ReportServer/ReportService.asmx";);
>         
> 
> HttpTransportProperties.Authenticator auth = new 
> HttpTransportProperties.Authenticator();
>         
>         auth.setUsername("user");
>         auth.setPassword("password");
>         auth.setHost("server.fr.domain.com");
>         auth.setDomain("domain");
>         auth.setPreemptiveAuthentication(false);
>         
>         
>         
>         List authPrefs = new ArrayList(1);
>         authPrefs.add(AuthPolicy.NTLM);
>         auth.setAuthSchemes(authPrefs);
>         
>         
> stub._getServiceClient().getOptions().setProperty(HTTPConstants.AUTHENTICATE, 
> auth);
>         
>         
>         
> com.microsoft.schemas.sqlserver.reporting.reportingservices.ReportingServiceStub.GetReportDefinition
>  getReportDefinition602=
>             
> (com.microsoft.schemas.sqlserver.reporting.reportingservices.ReportingServiceStub.GetReportDefinition)getTestObject(com.microsoft.schemas.sqlserver.reporting.reportingservices.ReportingServiceStub.GetReportDefinition.class);
>         
>                 getReportDefinition602.setReport("/Galaxy/utilisateur");
>                 
>                 
> assertNotNull(stub.GetReportDefinition(getReportDefinition602));
> 
> Thanks
> 

_________________________________________________________________
Rediscover Hotmail®: Get quick friend updates right in your inbox. 
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Updates1_042009

Reply via email to