Custom Remoting DataPortal with compression sequel

Thanks to Rocky's feedback I reworked my initial solution to make it a little better.
This one doesn't involve reflection at all and it implements a custom interface that is used only between the proxy and the server component.

Also, I see I created some confusion with an ill choice of namespace naming. I changed them to be more Csla like. The assembly name also changed. Sorry if you had trouble with that.

Also, I separated the "dynamic proxy" part from the actual proxy that does compression so if you don't really need it, you can skip it. The new proxy is called "CompressedRemotingProxy" and the server component "CompressedRemotingPortal".

Here's a sample for the relevant web.config section:


    <system.runtime.remoting>

        <application>

            <service>

                <wellknown mode="SingleCall" objectUri="RemotingPortal.rem" type="Csla.Server.Hosts.RemotingPortal, Csla"/>

                <wellknown mode="SingleCall" objectUri="RemotingPortalCompressed.rem" type="Csla.Server.CompressedRemotingPortal, Csla.Compression"/>

            </service>

            <channels>

                <channel ref="http">

                    <serverProviders>

                        <provider ref="wsdl"/>

                        <formatter ref="soap" typeFilterLevel="Full"/>

                        <formatter ref="binary" typeFilterLevel="Full"/>

                    </serverProviders>

                </channel>

            </channels>

        </application>

    </system.runtime.remoting>



And here's the same for the client's app.config:

        <add key="CslaDataPortalProxy" value="Csla.DataPortalClient.CompressedRemotingProxy, Csla.Compression"/>

        <add key="CslaAuthentication" value="Csla"/>

        <add key="CompressedDataPortalUrl" value="http://localhost/CompressedPortal/RemotingPortalCompressed.rem"/>

        <!--<add key="CslaDataPortalUrl" value="http://localhost/CompressedPortal/RemotingPortalCompressed.rem"/>-->



I created a new parameter for passing the url: CompressedDataPortalUrl. If the parameter is not found, it falls back to CslaDataPortalUrl (notice it's commented out in the snippet).

Make sure you test the server component from the browser in case you have something wrong in your config. Paste this as the url in your browser:
http://localhost/CompressedPortal/RemotingPortalCompressed.rem?wsdl

If you get an xml result then you're good to go.

For those of you who are interested in using the dynamic changing of dataportal types, use "CustomDataPortalRemotingProxy" instead of CompressedRemotingProxy in your app.config.


You can get the source code here.
Well, that's it. Enjoy!


Andrés

posted @ Monday, April 23, 2007 1:57 AM

Print

Comments on this entry:

# re: Custom Remoting DataPortal with compression sequel

Left by Stan at 5/2/2007 1:02 AM
Gravatar
I am a bit slow, I guess. I am missing something. When I check the remoting site I get an error stating it can't find Csla.DataPortal.Compressed.

What am I missing?

# re: Custom Remoting DataPortal with compression sequel

Left by Andrés at 5/3/2007 12:39 PM
Gravatar
Have you got the latest?? By the looks of it, you're using the old names, so I'd guess not.
Download the latest code and copy the config sections as sampled in this last article.
Notice that the namespaces changed to avoid the same problem you have right now.

# Random Rants

Left by Pictured Left at 5/9/2007 12:59 PM
Gravatar
[...] Here's a site I found today while I was bored at work: [...]

# re: Custom Remoting DataPortal with compression sequel

Left by Stan at 6/22/2007 4:42 PM
Gravatar
Just wanted to let you know, I did get around to really lookin at your solution and everything worked great. Thank you for your work on this topic.

# re: Custom Remoting DataPortal with compression sequel

Left by Naw at 6/28/2007 3:16 AM
Gravatar
Have you tried this with the compression built into .NET instead of the open source one? We'd like to avoid using another component.

# re: Custom Remoting DataPortal with compression sequel

Left by Andres at 7/4/2007 9:58 AM
Gravatar
I haven't personally tried that, but I heard someone did that with success. The framework only has support for gzip, which doesn't have the best compression ratio, but it does compress much faster than bzip2. If you were to do that, you only need to change the compression and decompression methods.

# re: Custom Remoting DataPortal with compression sequel

Left by David at 3/10/2008 8:52 PM
Gravatar
Thank you for your work on this project. Is there a reason you did not compress in incoming message in the create, delete, and fetch methods?
I am still trying to get my head around it. Your solution seems very clean and simple.
Thanks

# re: Custom Remoting DataPortal with compression sequel

Left by Tiago Freitas leal at 8/5/2009 12:31 PM
Gravatar
Hi Andrés,
I noticed a while ago that the Compressed DataPortal isn't working under Csla 3.5.

# re: Custom Remoting DataPortal with compression sequel

Left by Amir at 12/4/2009 12:36 AM
Gravatar
We are redeveloping certain modules of an application using CSLA. Since the application was developed using .NET 2.0 we need to use CSLA 2.1.4. Would we able to use Compressed Data Portal with remoting? If not, what would it take to do it.
Thanks.

# re: Custom Remoting DataPortal with compression sequel

Left by SallieBurns28 at 1/18/2011 1:03 AM
Gravatar
I took my first credit loans when I was 20 and that helped me very much. Nevertheless, I require the auto loan over again.

# re: Custom Remoting DataPortal with compression sequel

Left by DavidsonROSANNE34 at 1/22/2011 11:24 AM
Gravatar
Prices form due to customers' necessities. College students buy numbers of custom written academic papers lastly. Thence, we have to see raising of prices. But, I think, that is real to detect the article critique writing company that can provide reasonable costs for term papers.

# re: Custom Remoting DataPortal with compression sequel

Left by Rowena24Moss at 1/22/2011 12:38 PM
Gravatar
Buy essays about this post, because this is easy to know about *** with the support of the essay writing services.

# re: Custom Remoting DataPortal with compression sequel

Left by BetsyHendrix at 1/24/2011 6:24 AM
Gravatar
I opine that you know how not easy can the custom essay performing be. But, you shouldn’t be embarrassed, simply because the research paper writing services present the custom research papers and there’s not a problem to buy papers and be satisfied.

# re: Custom Remoting DataPortal with compression sequel

Left by Vargas30KAYE at 1/27/2011 3:38 PM
Gravatar
Do you seek to make your topic referring to this post very famous with the help of the article submission service? If not, I would offer to choose the free article submission list! I hope that my advice would help!

# re: Custom Remoting DataPortal with compression sequel

Left by qiao456 at 4/4/2011 11:35 PM
Gravatar
We are all well aware that a major problem in the 220-701 industry is that there is a lack of quality study materials. Our windows 7 configuration Material provides you everything you will need to take a certification examination. Details are researched and produced by social networking benefits Experts who are constantly using CompTIA Security+ experience to produce precise, logical and verified mcsa for the answers. You may get questions from different web sites or free exam questions, but logic is the key.

# re: Custom Remoting DataPortal with compression sequel

Left by copywriting service at 5/3/2011 6:08 AM
Gravatar
I think it can be really useful for all users. I like your code.

# re: Custom Remoting DataPortal with compression sequel

Left by essay services at 5/3/2011 6:12 AM
Gravatar
You write rather clear and accurate code. I like it very much.

# 2011 summer new Fashion Replica watches

Left by Clementine at 5/18/2011 4:29 AM
Gravatar


To be honest, as for fashion watches, I tend to choose the good-looking ones to flaunt my fashion taste and social status. Thus those luxurious designer watches in nice appearance are extremely charm my heart. Among kinds of luxurious manufacturers of splendid timepieces, I specially like Audemars Piguet Replica Watches. It is the blushed steel and gold materials that make Audemars Piguet Jules Audemars Replica Watches distinctively different from other luxury watches. Replica Audemars Piguet Royal Oak Watches are gaining more and more popular with huge demands. While, they never be come out with cheap prices. Replica Royal Oak Offshore Watches are priced high that most common people cannot afford one. So do I. I'd like to own a luxury piece, while I have limited bank account. That always let me down.


# CCIE EXAM

Left by endeavor at 5/24/2011 4:40 AM
Gravatar
Cathayschool designed the ccie boot camp training to help you pass the CCIE Exams . ccie lab boot camp can guarantee you on your CCIE exam on your certification. What’s more, once you join in our ccie lab boot camp,We designed the 1-Week Lab Experience ccie bootcamp for students who need more time in the mock lab to fully master configurations and solutions. This ccie bootcamp is ideal for students who did not pass the exam and are looking for extensive practice time, coupled with feedback from a personal expert instructor.

# re: Custom Remoting DataPortal with compression sequel

Left by Leo123 at 6/4/2011 12:21 AM
Gravatar

# designwatchcopy

Left by carlalee at 6/8/2011 3:47 AM
Gravatar
Think that you don't have the money to afford any of the Chopard Watches currently available? Think the Chopard Watches are an elegant solution that's out of your grasp? Not anymore. We sell the finest Replica Chopard H Watch Watches from any marketplace. All of our Replica Chopard Happy Beach Watches are of the same quality level from all of our competitors. Our watch quality can't be beat as every one of our Replica Chopard Happy Diamonds Watches is carefully tested bfore we ship it to our consumers. And because you deserve to have your accessories sooner rather than later, we offer fast delivery to all of our consumers. What are you waiting for? You want one of our Replica Chopard Happy Spirit Watches and our customer service is standing by seven days a week to fulfill all of your needs in regards to our Replica Chopard Happy Sport Watches.

# re: Custom Remoting DataPortal with compression sequel

Left by thesis proofreading at 6/9/2011 6:12 PM
Gravatar
Thanks for this so full explanation. It is so useful for me in work

# what should be attention when buy inflatable products

Left by water slide at 6/22/2011 12:19 AM
Gravatar
Becasue i am employed myself in water slide field about 6 years, after finishing the bouncy castle you can transport them by air courier, there usually just need 3-5days by dhl,ups, fedex or ups or ems.Especial if you buy two or more pieces of bounce house, the weight is heavier, and freight by air courier is more expensive. Here i just share with the water slide or inflatables buyers, if you decide to buy one ore more pieces of inflatables, Here i just share with the water slide or inflatables buyers, if you decide to buy one ore more pieces of castle bounce, you can buy it in http://waterslide.en.hisupplier.com, inflatables tent, inflatables toy, large inflatables.

# re: Custom Remoting DataPortal with compression sequel

Left by FerrellChristine26 at 11/5/2011 4:13 PM
Gravatar
When you are in a not good position and have got no money to move out from that, you will require to take the business loans. Because that would aid you emphatically. I take collateral loan every single year and feel great because of this.

# re: Custom Remoting DataPortal with compression sequel

Left by Custom Essay Writing Service at 11/22/2011 4:25 AM
Gravatar
I want to say that I don’t think I’ve read something so true in a long time. You’ve got a lot of great ideas, a great deal of viewpoint. I think that you absolutely have something important to say

# re: Custom Remoting DataPortal with compression sequel

Left by lose weight fast at 12/13/2011 9:32 AM
Gravatar
You've made a fantastic work creating the article

# re: Custom Remoting DataPortal with compression sequel

Left by Cell Phone Lookup at 1/6/2012 3:18 PM
Gravatar
What an enjoyable read Reverse Cell Phone Lookup this turned out to be! It's not Pellet Stoves too often I find content that impresses me Outdoor Lighting on every level - and this Outdoor Flood Lights post most certainly did. This article has truly enlightened me in ways I could not have anticipated prior to reading Used Pellet Stoves this masterpiece! So, this is one of the more memorable posts I have read on this topic - in large part due to the writing style displayed here. Inasmuch as Outdoor Security Lights I appreciate reading informative posts, I appreciate - even more - content that is delivered in an entertaining and captivating style ... which Landscape Lighting Ideas this is! Considerably, the blog post is actually Verizon Reverse Phone Search the greatest on this worthy topic. I concur with your decisions and will thirstily look forward to see your approaching updates. Saying thanks will not just be adequate, Sprint Reverse Phone Lookup for the phenomenal lucidity in your writing. I also know this can be considered something like a Cell Phone White Pages or a Cell Phone Directory. I will at once grab your feeds to stay informed of any updates. Delightful work and much success in your business endeavors! Have a nice day.

# re: Custom Remoting DataPortal with compression sequel

Left by venapro at 1/19/2012 11:26 AM
Gravatar
the application was developed using .NET 2.0 we need to use CSLA 2.1.4. Would we able to use Compressed Data Portal with remoting? If not, what would it take to do it.
Thanks.

Your comment:



 (will not be displayed)


 
 
 
Please add 5 and 8 and type the answer here:
 

Live Comment Preview:

 
«February»
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910