doubts about the DataPortal Mobile Object

doubts about the DataPortal Mobile Object

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


NickyLarson posted on Thursday, July 09, 2009

Hello everyone !

The  English is not my domain, so I will try my best :(

I am new to CSLA and I have some doubt about the DataPortal and I would like to ask some question. Thanks

1.
In the example of ProjectTracker the DataPortal is Hosted in WCF (WCFHost site), but I don´t see any class for the contract and Service.

2.
In the book I read about WCF Service Interface, what is the relation with the WCFHost?

3.
The ProjectTracker use an example of WCF Service Interface (PTWcfClient) with Custom Authentication (PTWcfServiceAuth) , with certificate, secure message, can I do the same thing on the WCFHost?

4.
The video of silverlight  SL0104-NTierArch , talk about the CompressedProxy , can I use this techinque also with CSLA.NET?

wcfsPortal.svc    ------   <% @ServiceHost Service="Bussiness.Compression.CompressedHost" %>

Thanks in advance.

Nicky


RockfordLhotka replied on Thursday, July 09, 2009

1. The contract and service implementation are in the Csla.Server.Hosts namespace in the Csla.dll assembly

2. WcfHost is an example of a WCF service project that hosts the data portal. You can create a svc file and web.config entries in almost any web site (as long as Csla.dll is in the bin directory) and host the data portal. There's nothing special about WcfHost.

3. You can secure the data portal using SSL or a custom certificate. That's relatively easy because it is just WCF configuration (though WCF configuration is rarely easy).

The data portal doesn't normally support the concept of passing custom credentials from the client, so the credentials are validated by WCF itself. If you really need to do that you will probably need to create your own custom WcfHost class. This is possible, but is an advanced scenario.

4. No, the .NET data portal does not have the same extensibility option for compression that we built for the Silverlight data portal. This is because there are other compression options in WCF that you can use, by purchasing (or building) a custom WCF binding that does compression.

However, several people have asked if I would enhance the .NET data portal to support compression, because it seems simpler and cheaper to use the technique we built for Silverlight, and so I may add this feature to .NET in the future.

NickyLarson replied on Friday, July 10, 2009

Thanks Rocky.

NickyLarson replied on Saturday, July 11, 2009

Hello Rocky.

Can I ask you for a complete example CSLA.NET data portal to support compression (WCF) if you don´t mind, or maybe can you show me some useful links, anythings that can show me the way.

I hope that this request has not upset you, if so my apologize.

Paulo



RockfordLhotka replied on Sunday, July 12, 2009

This is discussed in the FAQ and you can see it in action in the InventoryDemo sample. If you want a more complete walk-through, check out the CSLA .NET for Silverlight video series.

 

FAQ; www.lhotka.net/cslanet/faq/

Samples: www.lhotka.net/cslalight/download.aspx

Video series: http://store.lhotka.net

 

Rocky

 

From: NickyLarson [mailto:cslanet@lhotka.net]
Sent: Saturday, July 11, 2009 6:55 PM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] doubts about the DataPortal Mobile Object

 

Hello Rocky.

Can I ask you for a complete example CSLA.NET data portal to support compression (WCF) if you don´t mind, or maybe can you show me some useful links, anythings that can show me the way.

I hope that this request has not upset you, if so my apologize.


Paulo






NickyLarson replied on Monday, July 13, 2009

Hello Rocky,

This example InventoryDemo is for CSLA.NET for Silverlight, and I want is for CSLA.NET.

I bought the video series (CSLA .NET for Silverlight video series) it´s amazing, a very good job :) but I  need an example for the CSLA.NET (Data Portal Compression) not for CSLA.NET for Silverlight. I like Silverlight but I will wait for Silverlight 3 to be mature enough to use it, so for now I will stick with CSLA.NET  :-)


Thanks.




RockfordLhotka replied on Monday, July 13, 2009

Oh, compression for the .NET data portal?

 

I don’t have an example. CSLA doesn’t handle this – any compression would be purely at the WCF level.

 

In other words, you’d need to find/buy a WCF binding that does compression and use that instead of wsHttpBinding or basicHttpBinding.

 

Rocky

 

NickyLarson replied on Monday, July 13, 2009

Hello Rocky.

I will do that.

Thanks for reply.


JoeFallon1 replied on Monday, July 13, 2009

I thought Andres built a compression module for the dataportal a while back. Do a search of the forum for XAL (Andres' user name) and compression.

Joe

NickyLarson replied on Monday, July 13, 2009

Great,  that´s what I am looking for..

Thank you Joe


ajj3085 replied on Tuesday, July 14, 2009

I'm using that, but wasn't it for remoting, not WCF? I bet its pretty easy to adapt though.

Copyright (c) Marimer LLC