rduncan10
4th October 2013, 17:15
I'm writing a web application in Visual Studio/C# that will pull data from our Baan server.
I'm trying to figure out what would be the best way to do this.
The application will be used for receiving. The web site will be access from mobile devices, like an iPhone or tablet. The user will enter an item or purchase order and get from Baan any open order lines.
We are running Baan 4 with Oracle on a Linux server. We don't have and can't afford OpenWorld, ION, etc. So I think these are my options:
I am only looking at options for getting read-only data from Baan. I know that for sending data back to Baan, I have to use AFS to update the data.
Option 1:
Query the Oracle database in Visual Studio. This seems like a good solution, but as I look around at other integration solutions, very few seem to directly access the database. I know one reason for this is that Baan can work with other databases. Since I'm writing this for our specific environment, that is not really an issue. And if you do it right, Visual Studio can be fairly database-independent too. Are there other good reason to avoid direct database queries?
Option 2:
Create a Baan session that exports the open POs periodically as a flat file or XML. Have the VS application import this. This seems like an okay option, but there could be some timing issues.
Hybrid Option 1/2:
I could combine option 1 and 2. Instead of letting each user send a request to the Oracle database, I could have VS do a periodic import of open orders from Oracle into the SQL database behind the website. This could minimize the number of connections to Oracle.
Option 3:
Use the Baan OLE to access Baan through function servers. In doing some checking, this doesn't seem like it is supported and is too buggy for a production environment.
Other options?
Thanks
I'm trying to figure out what would be the best way to do this.
The application will be used for receiving. The web site will be access from mobile devices, like an iPhone or tablet. The user will enter an item or purchase order and get from Baan any open order lines.
We are running Baan 4 with Oracle on a Linux server. We don't have and can't afford OpenWorld, ION, etc. So I think these are my options:
I am only looking at options for getting read-only data from Baan. I know that for sending data back to Baan, I have to use AFS to update the data.
Option 1:
Query the Oracle database in Visual Studio. This seems like a good solution, but as I look around at other integration solutions, very few seem to directly access the database. I know one reason for this is that Baan can work with other databases. Since I'm writing this for our specific environment, that is not really an issue. And if you do it right, Visual Studio can be fairly database-independent too. Are there other good reason to avoid direct database queries?
Option 2:
Create a Baan session that exports the open POs periodically as a flat file or XML. Have the VS application import this. This seems like an okay option, but there could be some timing issues.
Hybrid Option 1/2:
I could combine option 1 and 2. Instead of letting each user send a request to the Oracle database, I could have VS do a periodic import of open orders from Oracle into the SQL database behind the website. This could minimize the number of connections to Oracle.
Option 3:
Use the Baan OLE to access Baan through function servers. In doing some checking, this doesn't seem like it is supported and is too buggy for a production environment.
Other options?
Thanks