Thread: How to read Excel file in BPEL

This question is not answered. Helpful answers available: 4. Correct answers available: 1.


Permlink Replies: 4 - Pages: 1 - Last Post: Feb 19, 2009 9:31 PM Last Post By: Nagaraju
Nagaraju

Posts: 99
Registered: 07/07/08
How to read Excel file in BPEL
Posted: Dec 17, 2008 2:20 AM
 
Click to report abuse...   Click to reply to this thread Reply
Hi All,

We ahve a requirement to read the Excel file in BPEL and we ahve to read the data from the file too to upload the data into Databa.se

Can anyone help regarding this.

Thanks in advance.


Regards,
Nagaraju .D

Dharmendra Dubey

Posts: 137
Registered: 05/19/08
Re: How to read Excel file in BPEL
Posted: Dec 17, 2008 3:27 AM   in response to: Nagaraju in response to: Nagaraju
 
Click to report abuse...   Click to reply to this thread Reply
Nagaraju,

Oracle file adapter can read and write CSV files, if you export excel files into csv format you could be able to read data from file and will be able to write into database.

See the following link for more details on Oracle File Adapter:
http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/adptr_file.htm

If you need to read .xls files directly from BPEL than you need to write custom Java code. You can use Apache POI to read and write excel files from Java code.

See the following tutorial to read and write excel files using POI:
http://www.onjava.com/pub/a/onjava/2003/04/16/poi_excel.html

Thanks,
Dharmendra
http://soa-howto.blogspot.com
Nagaraju

Posts: 99
Registered: 07/07/08
Re: How to read Excel file in BPEL
Posted: Dec 22, 2008 2:07 AM   in response to: Dharmendra Dubey in response to: Dharmendra Dubey
 
Click to report abuse...   Click to reply to this thread Reply
Hi All,

My requirement is to read one excel file from FTP Location and insert the values into datbase is it possible through bpel or do we need tro write some jave ode.if can any one tell em how to achieve this.

Thanks and Regards,
Nagaraju .D
Nils Beosier

Posts: 26
Registered: 10/25/08
Re: How to read Excel file in BPEL
Posted: Dec 23, 2008 2:50 AM   in response to: Nagaraju in response to: Nagaraju
Helpful
Click to report abuse...   Click to reply to this thread Reply
Nagaraju,

I had a similar case in which I used a separate Java Webservice that accepts a Excel file. In my case it returned an XML of the data but you might as well write it straight to a database.
Whether this is the best way to approach your problem I don't know but if written generic it could come in handy to have it as a separate service.

Parsing excel using BPEL without using any custom Java code isn't possible as far as I know.

Greetings
Nils
Nagaraju

Posts: 99
Registered: 07/07/08
Re: How to read Excel file in BPEL
Posted: Feb 19, 2009 9:31 PM   in response to: Nils Beosier in response to: Nils Beosier
 
Click to report abuse...   Click to reply to this thread Reply
Hi Nils,

Thansk for your solution can you share the Webservice with or me can you share some light on the same so that it will be easy for me as this is urget for me we are struck with this and the client wats this urgently.

You can mail me at nagaraju.daramukkala@wipro.com.

Thanks and Regards,
Nagaraju .D
Legend
Guru Guru : 2500 - 1000000 pts
Expert Expert : 1000 - 2499 pts
Pro Pro : 500 - 999 pts
Journeyman Journeyman : 200 - 499 pts
Newbie Newbie : 0 - 199 pts
Oracle ACE Director
Oracle ACE Member
Oracle Employee ACE
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums