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

CRNConnect.java - Urgent

Started by Rajaggopal, 01 Jun 2009 08:02:27 PM

Previous topic - Next topic

Rajaggopal

Hi everyone,
I was working around in SDK trying to learn it and i accidentally modified CRNConnect.java and corrupted it :( now iam not able to work with other samples like Logon.java and RunReport.java Can anyone please upload this one java file so that i may continue my learning. It is really urgent and any help is most appreciated.

If it is not allowed to upload it here then please refer my profile for my mail id and send it. Thanks a lot in advance.

mc09


try {
StringBuffer credentialXML = new StringBuffer();

credentialXML.append("<credential>");
credentialXML.append("  <namespace>").append(conf.getNamespace()).append(
"</namespace>");
credentialXML.append("<username>").append(conf.getUsername())
.append("</username>");
credentialXML.append("<password>").append(conf.getPassword())
.append("</password>");
credentialXML.append("</credential>");

String encodedCredentials = credentialXML.toString();
XmlEncodedXML xmlCredentials = new XmlEncodedXML();
xmlCredentials.setValue(encodedCredentials);
cmService.logon(xmlCredentials, null);
} catch (Exception e) {
                }



does it help you?

Rajaggopal

Thanks for replying mc09 but what you have provided is a part of the code snippet for Logon.java and Iam in need of the entire CRNConnect.java file.

mc09

drop mail to me and i will send you the code.

Rajaggopal

hey thanks a lot mc... it really helped me with my SDK learning :)