I'm trying to retrieve a list of public folders from a CognosReportNet server. Cognos Connection Version: 1.1.230.2 - The SDK has been installed on the server; I have added the web service as a web reference to the project. Here's a code snippet that I used:
CognosReportNetService crn = new CognosReportNetService();
crn.Url = "ICredentials credentials = new NetworkCredential("username","password","domain");
reportNet.Credentials = credentials;
ViewPackagesAndReports test = new ViewPackagesAndReports();
//* Error occurrs *
string output = test.viewAll( reportNet );
The error returned is the following:
'System.Net.WebException' - HTTP status 401: Unauthorized.
I need a step-by-step guide on how to connect to the server, and retrieve a single public folder name, I should be able to figure the rest out.
I'm using Visual Studio 2003 and C# - Asp.Net. The CognosReportNet server runs on a Windows2003 box on IIS6, and IIS is configured for Windows Authentication.
CognosReportNetService crn = new CognosReportNetService();
crn.Url = "ICredentials credentials = new NetworkCredential("username","password","domain");
reportNet.Credentials = credentials;
ViewPackagesAndReports test = new ViewPackagesAndReports();
//* Error occurrs *
string output = test.viewAll( reportNet );
The error returned is the following:
'System.Net.WebException' - HTTP status 401: Unauthorized.
I need a step-by-step guide on how to connect to the server, and retrieve a single public folder name, I should be able to figure the rest out.
I'm using Visual Studio 2003 and C# - Asp.Net. The CognosReportNet server runs on a Windows2003 box on IIS6, and IIS is configured for Windows Authentication.