BIRT Connector Configuration
BIRT Connector Configuration
BIRT Connector Configuration
1. Installation
1. Attach the method set “Method Set BIRT Reports” to BIRT Connector Service Group.
Note: In BOP-4 we need to attach method set manually.
2. Add “CORDYS_INSTALL_DIR/birt/BIRT. Jar” in JRE configuration class path.
3. Create a soap processor for the BIRT Report connector and specify the Report
engine Directory “D:\birt-runtime-VERSION\ReportEngine”in BIRT Run Time
directory Value.
Note: BIRT Run Time directory should contain above jar files in lib folder
4. Specify BIRT Report design files location in BIRT Report Repository.
5. If you are using JDBC Data Source connection in rptdesign specify related driver jar
files in bcp.classpath.
Ex: sqljdbc.jar required in bcp.classpath in case JDBC Data Source using sql driver in
rptdesign.
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Body>
<GetReport SAMLart="" xmlns="http://schemas.cordys.com/BIRT/">
<ReportName>/BirtSpace/employees.rptdesign</ReportName>
<OutputFormat>html</OutputFormat>
<Embeddable>false</Embeddable>
<OutputToFile>true</OutputToFile>
<EncodeFile>true</EncodeFile>
<PARAMS>
<PARAM>
<Name>DEPARTMENT_ID</Name>
<Value>IT</Value>
</PARAM>
<PARAM>
<Name>LOCATION_CODE</Name>
<Value>USA</Value>
</PARAM>
</PARAMS>
</GetReport>
</SOAP:Body>
</SOAP:Envelope>
Parameter Description Mandatory Default
ReportName 1.rptdesign file path should be available under BIRTReport Repository Yes
directory specified in BIRT Connector Properties Page.
Ex: <ReportName>/BirtSpace/employees.rptdesign </ReportName>
Connector checks “>/BirtSpace/employees.rptdesign” file under “D:\\
BIRT Report Repository”
OutputFormat BIRT Connectors support all types support by BIRT Eclipse. No html
Input Values: xls, pdf, doc, html
Embeddable Whether the report is going to be embedded in another html page No false
or not. If Yes, the response report html will not contain html, body
tags.
Input Values: true/false
OutputToFile Whether the report content has to be in the response or does it No true
need to be stored in a file. When the output format is other than
“html”, the value for this parameter is ignored. Meaning the
output will always be written to a file.
Input Values: true/false
EncodeFile Connector return Bases64 encoded text No false
Input Values: true/false
PARAMS Root tag contains Input PARAM(s) xml tags. No
PARAM Xml tag contains Name and Value xml nodes of Report Parameter No
PARAM/Name Name of the Input Parameter using in rptdesign No
PARAM/Value Value of the Input Parameter using in rptdesign No
SOAP Request
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Body>
<GetReport xmlns="http://schemas.cordys.com/BIRT/" SAMLart="">
<ReportName>/BirtSpace/employees.rptdesign</ReportName>
<OutputFormat>html</OutputFormat>
<Embeddable>false</Embeddable>
<OutputToFile>true</OutputToFile>
<EncodeFile>true</EncodeFile>
<PARAMS>
<PARAM>
<Name>DEPARTMENT_ID</Name>
<Value>IT</Value>
</PARAM>
<PARAM>
<Name>LOCATION_CODE</Name>
<Value>USA</Value>
</PARAM>
</PARAMS>
</GetReport>
</SOAP:Body>
</SOAP:Envelope>
SOAP Response:
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Header>
</SOAP:Header>
<SOAP:Body>
<GetReportResponse xmlns="http://schemas.cordys.com/BIRT/">
<REPORT_CONTENT>
<![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
</html>]]>
</REPORT_CONTENT>
</GetReportResponse>
</SOAP:Body>
</SOAP:Envelope>
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Header>
</SOAP:Header>
<SOAP:Body>
<GetReportResponse xmlns="http://schemas.cordys.com/BIRT/">
<HyperLink>
<![CDATA[/cordys/birt/reports/reportFiles/1169740114332.pdf]]>
</HyperLink>
<PhysicalLink>
<![CDATA[C:\Program Files\Cordys/web/birt/reports/reportFiles/1169740114332.pdf]]>
</PhysicalLink>
</GetReportResponse>
</SOAP:Body>
</SOAP:Envelope>
You will get both the Hyperlink and physical link to the file in the file system
4. Using Cordys Web Service in rptdesign
We need to provide Soap end point and SAMLart to rptdesign to avoid Authentication problem.
SAMLart: This can be passed from SAMLart attribute
Soap End Point: Connector will prepare SOAP_END_POINT parameter dynamically and passed to
rptdesign as request parameter.
Note: As shown in below image
1. Add SOAP_END_POINT as Input Parameter
2. Do Property binding for Data Source Soap End Point.
Connector will use SAMLart attribute Value passed by user in GetReport Request to generate sub Report. In
case SAMLart not providing or session was expired then user need to provide Credentials to view Report.
Connector supporting Drill down for html, xls, pdf and doc.