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.

0

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

 

 

sushobhan.b's picture
Joined: Aug 22 2018 - 10:52pm
Last seen: 2 weeks 5 days ago

0 Answers:

No answers yet
Feedback
randomness