CSLADATASOURCE - Newbie

CSLADATASOURCE - Newbie

Old forum URL: forums.lhotka.net/forums/t/2661.aspx


ausbiscuit posted on Wednesday, April 04, 2007

I would like to set the TypeAssemblyName and TypeName to a webservice (as opposed to a business object). Is this possible? and if so please advise correct value to insert.

Thanks

George

skagen00 replied on Wednesday, April 04, 2007

What I would do is simply create a proxy object that calls the web service. (i.e. use the csladatasource in the CSLA traditional way -- just have the CSLA object invoke your Web service for you).

 

ausbiscuit replied on Wednesday, April 04, 2007

Thanks

Is this the only option or are their alternatives? Which tier do you suggest to place the proxy object.

George

djjlewis replied on Thursday, April 05, 2007

I have not done this before, but my initial reaction would be to avoid using the CslaDataSource for this scenario - that is keep the CslaDataSource for the CSLA objects for which it was designed.

I'd treat your web service the same as any other web service i.e. no one need know it is really using CSLA behind the scenes.

If you go with that approach, you should be able to go with the recommended way of using Web Services as a  data source in ASP.NET 2.0 and use the ObjectDataSource control as discussed in the following article: http://channel9.msdn.com/ShowPost.aspx?PostID=200444

And mentioned briefly here: http://msdn.microsoft.com/msdnmag/issues/05/01/DataPoints/

Regards,

Dan.


ausbiscuit replied on Friday, April 06, 2007

Thanks

Much appreciated

George

Copyright (c) Marimer LLC