Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Session Problem
Session Problem [message #916030] Tue, 18 September 2012 08:37 Go to next message
Kevin Kilroy is currently offline Kevin Kilroy
Messages: 1
Registered: September 2012
Junior Member
Hi,

I have integrated BIRT into a web-app, however when I use Spring Security on the operations that BIRT uses for it's web-service datasource, then authentication fails as their is no session id present.

I'm using BIRT 3.7.2. I access a report with the following URL:

localhost/APP/frameset?__report=birt/reports/test.rptdesign

If I remove the authentication, then obviously all works well.

I'm using the Viewer example that ships with BIRT. My web.xml contains the session listener:

<!-- Viewer HttpSession Listener -->
<listener>
<listener-class>org.eclipse.birt.report.listener.ViewerHttpSessionListener</listener-class>
</listener>

If I try to append the JSESSIONID to the URL, it still doesn't work, seems that it makes a http POST after the initial GET, and this is where the session is lost.

Can anybody provide help on howto access web-service datasource with JSESSION id's in the soap headers?

Thanks in advance,

Kevin.
Re: Session Problem [message #916162 is a reply to message #916030] Tue, 18 September 2012 12:29 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Kevin,

I do not believe the web service data source supports authentication. You could write a scripted data source that accesses the web service:
http://digiassn.blogspot.com/2006/10/birt-scripted-data-source-to-call-web.htmlhttp://digiassn.blogspot.com/2006/10/birt-scripted-data-source-to-call-web.html
or use the custom connection class in the web service data source:
http://www.birt-exchange.org/org/devshare/designing-birt-reports/461-birt-web-service-oda-article/

Jason
Previous Topic:Dynamically read resource bundle files
Next Topic:Last modified date of the report
Goto Forum:
  


Current Time: Fri Aug 22 15:40:21 EDT 2014

Powered by FUDForum. Page generated in 0.02490 seconds