StrataFrame Forum

Can a BO be based on a Web Service?

http://forum.strataframe.net/Topic8838.aspx

By Greg McGuffey - 5/16/2007

If it can, how?
By StrataFrame Team - 5/16/2007

The closest thing would be to create the structure of the web service return value within the DDT and build your business object from that.  Then, have the web service return a DataTable and use one of the CopyDataFrom methods of the business object to copy the data into the business object.
By Greg McGuffey - 5/16/2007

That makes sense. Thanks.
By Yoyo Young - 5/16/2007

Hi,

In above case, I mean use WS as data access layer.
Can I call ADO.NET data table which is exposed through the CurrentDataTable, CurrentView, and CurrentRow properties in BO?

Yoyo

By Trent L. Taylor - 5/17/2007

StrataFrame allows you to create your own DAL just as we have created the SQL, Oracle, VFP, Access, and Enterprise Server DALs.  You can create your own DAL to talk to anything that you would like....even a text file if you had the desire.  When you create a DAL you will inherit the DbDataSourceItem class which will provide the structure and layout required by the framework.  Once you have your DAL class created it can be used over and over again.  Additionally, it ties seamlessly into the framework and the business layer so all of the internal ADO.NET components will be there and will act no different than if you were using SQL Server.