If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Logon to CRN via SDK C#

Started by pw, 05 Oct 2006 10:54:42 AM

Previous topic - Next topic

pw

Hi folks,

can anyone tell me, why i am getting "The client did something wrong" message everytime i try the following code?


try
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  {
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  System.Text.StringBuilder credentialXML = new System.Text.StringBuilder("<credential>");
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  credentialXML.AppendFormat("<namespace>{0}</namespace>", defaultNamespace);
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  credentialXML.AppendFormat("<username>{0}</username>", defaultUserName);
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  credentialXML.AppendFormat("<password>{0}</password>", defaultPassword);
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  credentialXML.Append("</credential>");

Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  string encodedCredentials = credentialXML.ToString();

Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  cm.logon(encodedCredentials, null);
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã, 
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  cam_passsport = cm.biBusHeaderValue.CAM.CAMPassport.id;

Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  }
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  catch (Exception ex)
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  {
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  MessageBox.Show(ex.Message);
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  }


supportlink says, this message is returned when no password is supplied, but there is a password supplied.

I have no clue at all :-(

(and: yes of course i set the three string variables defaultNamespace, defaultUserName, defaultPassword)

pw

Ok, i have found out the reason for this problem...
Our ReportNet installation uses a Plugin similar to .htaccess to get connected to CRN.

Does anybody know a way to authenticate via WWW 401 header?