Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Session Problem
Session Problem [message #916030] Tue, 18 September 2012 12:37 Go to next message
Kevin Kilroy is currently offline Kevin KilroyFriend
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 16:29 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
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 Apr 26 10:44:56 GMT 2024

Powered by FUDForum. Page generated in 0.02677 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top