2

I am trying to integrate cognos BI server with console application when I tried to connect to server I am getting error state as 'The request failed with an empty response.'

credentialXML.AppendFormat("<namespace>{0}</namespace>", "");
credentialXML.AppendFormat("<username>{0}</username>", "username");
credentialXML.AppendFormat("<password>{0}</password>", "Password");
credentialXML.Append("</credential>");

//The csharp toolkit encodes the credentials
string encodedCredentials = credentialXML.ToString();
xmlEncodedXML xmlEncodedCredentials = new xmlEncodedXML();
xmlEncodedCredentials.Value = encodedCredentials;
searchPathSingleObject[] emptyRoleSearchPathList = new searchPathSingleObject[0];
cBICMS.logon(xmlEncodedCredentials, null);
Patrick Hofman
  • 153,850
  • 22
  • 249
  • 325
Akhilesh
  • 171
  • 2
  • 20

0 Answers0