RE: NTLM IISS

2009-04-09 Thread Robbe Fabrice
Hello.

I don't think that my problem is in the namespace as if I configure IIS with 
anonymous connection everything is OK and I can access to all function in 
Report Services. Anyway the namespace is define by my SQL server installation 
so it's not possible to change it. 
I get the WSDL directly with the URL supplied in my post with the ?WSDL option. 
Axis 2 generate stub to call it without problem.
But with IIS using windows authentication I get the 401 error. So I really 
think that the problem is the NTLM authentication.


De : Martin Gainty [mailto:mgai...@hotmail.com] 
Envoyé : mercredi 8 avril 2009 20:35
À : axis-user@ws.apache.org
Objet : RE: NTLM IISS

http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices. is 
a 404 
you'll need to use a different schema (which is accessible)

and let us know when MS provides a wsdl for that web-service

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 17:34:48 +0200
Subject: RE: RE: NTLM IISS
I have the WSDL provided by reportServer  
(http://localhost/reportserver/ReportService.asmx?WSDL)
and the namespace use by ADB generated bean is 
http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices.
 
But every time I try to call the ReportServer Ws, I get the 401.2 error sent by 
IIS, so there is no possible call to the server as IIS act as a filter. I'm not 
the only  user of the server so changing the IIS configuration to Anonymous may 
not be possible.
It's difficult to find information as NTLM as sample don't refer to the right 
version.

 
De : Martin Gainty [mailto:mgai...@hotmail.com] 
Envoyé : mercredi 8 avril 2009 16:46
À : axis-user@ws.apache.org
Objet : RE:
 
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/reportingservices
then 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 
 

[no subject]

2009-04-08 Thread Robbe Fabrice
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



RE: RE: NTLM IISS

2009-04-08 Thread Robbe Fabrice
I have the WSDL provided by reportServer  
(http://localhost/reportserver/ReportService.asmx?WSDL)
and the namespace use by ADB generated bean is 
http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices.

But every time I try to call the ReportServer Ws, I get the 401.2 error sent by 
IIS, so there is no possible call to the server as IIS act as a filter. I'm not 
the only  user of the server so changing the IIS configuration to Anonymous may 
not be possible.
It's difficult to find information as NTLM as sample don't refer to the right 
version.



De : Martin Gainty [mailto:mgai...@hotmail.com]
Envoyé : mercredi 8 avril 2009 16:46
À : axis-user@ws.apache.org
Objet : RE:

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/reportingservices
then 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. Check it 
out.http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Updates1_042009