Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » XML Data Source(XML Data Source)
XML Data Source [message #748239] Mon, 24 October 2011 15:24 Go to next message
Eric W is currently offline Eric WFriend
Messages: 29
Registered: November 2009
Junior Member
Hello,

I have been using the 2.5 web viewer that I built from source. I am trying to upgrade to 3.7 but I am running into some issues.

I had to modify the eclipse data tools project to get the webviewer working in our production environment. Specifically, org.eclipse.datatools.enablement.oda.xml

My question is, does BIRT 3.7 web viewer still use this for xml datasources? I have modified the jars and even through in some logging but it appears this is not used.

All of our reports pull from a xml datasource via http://www.mydatasource.com

My real problem is I have to be able to modify the request right before I call the url to get the xml datasource.

Any help would be greatly appriciated.

-Eric
Re: XML Data Source [message #748428 is a reply to message #748239] Mon, 24 October 2011 17:24 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Yes BIRT still uses that package for xml access. What jar are you
modifying?
As another option you could use the custom class feature of the web
service data source. Take a look at the attached document that has a
section on custom class.

http://www.birt-exchange.org/org/devshare/designing-birt-reports/461-birt-web-service-oda-article/

Jason

On 10/24/2011 11:24 AM, wozniakem wrote:
> Hello,
>
> I have been using the 2.5 web viewer that I built from source. I am
> trying to upgrade to 3.7 but I am running into some issues.
>
> I had to modify the eclipse data tools project to get the webviewer
> working in our production environment. Specifically,
> org.eclipse.datatools.enablement.oda.xml
>
> My question is, does BIRT 3.7 web viewer still use this for xml
> datasources? I have modified the jars and even through in some logging
> but it appears this is not used.
>
> All of our reports pull from a xml datasource via
> http://www.mydatasource.com
>
> My real problem is I have to be able to modify the request right before
> I call the url to get the xml datasource.
>
> Any help would be greatly appriciated.
>
> -Eric
Re: XML Data Source [message #749780 is a reply to message #748428] Tue, 25 October 2011 12:39 Go to previous messageGo to next message
Eric W is currently offline Eric WFriend
Messages: 29
Registered: November 2009
Junior Member
I cant use the custom class as that is for web services. This is just from an xml source via http.

I am modifying org.eclipse.datatools.enablement.oda.xml.source_1.2.1.v201104121500.jar.
specifically XMLSourceFromPath and org.eclipse.datatools.enablement.oda.xml.impl.Connection

However, when I modify the jar it wont run. I removed all my code and just put some system.out.println(); even the printlns will not run.
Re: XML Data Source [message #750064 is a reply to message #749780] Tue, 25 October 2011 15:58 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

This probably because the jar is signed. Open the jar and
in the META-INF folder delete everything but the MANIFEST.MF file.
openthe MANIFEST.MF file and delete all the entries similar to the
following:

Name: org/eclipse/datatools/enablement/oda/xml/util/SaxParserUtil.clas
s
SHA1-Digest: VJUfJZPOB7zbjxRv4YMky1/Yuvs=

BTW the web service uses the xml datasource to do the xpath mapping of
columns so a custom class should work in your case.

Jason

On 10/25/2011 8:39 AM, wozniakem wrote:
> I cant use the custom class as that is for web services. This is just
> from an xml source via http.
>
> I am modifying
> org.eclipse.datatools.enablement.oda.xml.source_1.2.1.v201104121500.jar.
> specifically XMLSourceFromPath and
> org.eclipse.datatools.enablement.oda.xml.impl.Connection
>
> However, when I modify the jar it wont run. I removed all my code and
> just put some system.out.println(); even the printlns will not run.
Re: XML Data Source [message #750294 is a reply to message #750064] Tue, 25 October 2011 18:22 Go to previous message
Eric W is currently offline Eric WFriend
Messages: 29
Registered: November 2009
Junior Member
Thank you, removing the hashes fixed it.

Again, thank you for your time.
Previous Topic:Viewer query parameters in Reload.rptlibrary
Next Topic:Show a preview of the report through runtime API
Goto Forum:
  


Current Time: Fri Dec 19 13:54:14 GMT 2014

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

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