Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ReportNet SDK using C#

Status
Not open for further replies.

JonniB

Programmer
Sep 13, 2004
1
ZA
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top