i'have question about reporting service reportservices,I'm trying to connect to the reporting web service sql server but an exception is raised, password or user are wrong error 401 unauthorized .
But i'm sure that they are correct this is how i use it :
I have imported a wsdl and i have got reportservice2005.pas.
Why i can't Authentify knowing that i can with browser how to use the methode LogOnUser() ? or THttpRio? to authtify.
this is the procedure i'm using :
defURL = 'http://khali-pc:80/ReportServerSQL2016/ReportService2005.asmx'
Report : CreateReport;
ReportingService : ReportingService2005Soap;
stream : TFileStream;
tailleBuffer,I : Integer;
UserLog : logonUser;
Rio1 : THttpRio;
Rio1 := THttpRIo.Create(self);
Rio1.HTTPWebNode.UserName := 'SomeDomain\SomeUser';
Rio1.HTTPWebNode.Password := 'xxxxxxx';
ReportingService := GetReportingService2005Soa
p(false, defURL, nil) ;
/////********** Second way to authenificate*************
PS: and the first way to athentificate is to include password and user in RIO (THttpRio) above
/// second method to authetify to SSRS
// UserLog := LogonUser.Create;
// UserLog.userName := 'SomeDomain\SomeUser';
// UserLog.password := 'xxxxxx';
// UserLog.authority :='' ;