How to pass username and password along with json datasource URL in jasper if i am using json datasource in subreport to get some json data using that URL.
In main report.
<subreport>
<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JsonDataSource("http://172.16.94.11:8081/api/v1/colorways/32a71f8d-15d67699834-UFXQ1MzCf...", "")]]></dataSourceExpression>
to access URL we need to give username password,if i pass username password like below directly in browser it works, but through jasperserver it guves HTTP 201 error.
http://username:pasword@172.16.94.11:8081/api/v1/colorways/32a71f8d-15d6...
Please help ASAP
0 Answers:
No answers yet