Topic
No replies
harishjava
harishjava
3 Posts
ACCEPTED ANSWER

Pinned topic J2EE Error: Saving the report to the Cognos: ReportService_PortType.add

‏2012-05-02T14:49:07Z |
Hi I am using Cognos 10 SDK to connect to Cognos 10 Server.
I am getting a Client Error, when saving the report to the Cognos10 Server using ReportService_PortType.add.

Here is the Code snippet I am using

public ReportService_PortType getReportService() {
return getReportService(false, "");
}

// sn_dg_sdk_mng_svc_hdrs_start_1
public ReportService_PortType getReportService(boolean isNewConversation, String RSGroup)
{
BiBusHeader bibus = null;
bibus =
BIBusHeaderHelper.getHeaderObject(((Stub)repService).getResponseHeader ("http://developer.cognos.com/schemas/bibus/3/", "biBusHeader"), isNewConversation, RSGroup);

if (bibus == null)
{
BiBusHeader CMbibus = null;
CMbibus =
BIBusHeaderHelper.getHeaderObject(((Stub)cmService).getResponseHeader("http://developer.cognos.com/schemas/bibus/3/", "biBusHeader"), true, RSGroup);

((Stub)repService).clearHeaders();
((Stub)repService).setHeader("http://developer.cognos.com/schemas/bibus/3/", "biBusHeader", CMbibus);
}
else
{
((Stub)repService).clearHeaders();
((Stub)repService).setHeader("http://developer.cognos.com/schemas/bibus/3/", "biBusHeader", bibus);

}

return repService;
}

try {
connection.getReportService().add(
  • new SearchPathSingleObject(parentPath), rpt, addOpts);*
}

Exception: Axis Fault
Detail message : Client Error
Fault Headers : See attached

Please help me. Thanks a lot in advance.