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

Got a SOAP exceptiion trying to connect to Cognos

Started by ada, 01 Sep 2008 03:17:57 AM

Previous topic - Next topic

ada

Hi,

I am using cognos SDK to get connection from my cognos server. I got the SAXException with error: Bad envelope tag: html.

the code I did:

ContentManagerService_ServiceLocator cmServiceLocator = new ContentManagerService_ServiceLocator();
ContentManagerService_Port   cmService = cmServiceLocator.getcontentManagerService(new java.net.URL("http://myCognosLink/cognos.cgi"));

    // logon
    StringBuffer sb = new StringBuffer();
    sb.append("<credential>");
    sb.append("<namespace>").append("LDAP").append("</namespace>");
    sb.append("<username>").append("login").append("</username>");
    sb.append("<password>").append("pwd").append("</password>");
    sb.append("</credential>");

XmlEncodedXML xmlCredentials = new XmlEncodedXML();
    xmlCredentials.setValue(sb.toString());
    cmService.logon(xmlCredentials, null);

I did a search for this error but seems there is few record for this one. I am wondering if this is caused by something else?

Any help would be very appreciated.

Many thanks,
Ada

ada

I got this problem solved and the cause was the URL should be the diapatch URL not the cognos cgi.

thanks,
Ada

lindero

You are also able to use the gateway URL while you have to be sure that the CAF is disabled.

The use of the dispatcher URL is nevertheless the better one.