REST vs SOAP architecture

Hi Experts.

I am building an asp.net mvc 1.0 application using the spark view engine. I am using ASP membership and my data layer is an ORM mapper called LLBLGenPro on top of mssql server.

I've been reading lots of information about soap and rest approaches and will need to have a combination of both as I am dealing with some sensitive data.

My thoughts are to go with a WFC service layer but I'm not sure where to wire it in.

My controllers are rendering views by calling a repository layer and receiving data transfer objects which have been mapped from my ORM.

I'm thinking that all I change is the controllers from calling the repository layer, to calling a webservice via proxy, which itself calls the repository layer and feeds back data transfer objects as results.

I'm also wondering if my calls to the WCF layer would be simply authenticated with the current website's membership data when logged in.

Any thoughts on the issue would be appreciated.
crittoAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jamesbaileCommented:
Does your repository layer implement an interface? If so it's a fairly easy job to use dependancy injection to inject a different implementation of the interface into your controllers. I'd suggest having a look at  Castle Windsor and the Castle WCF facility

Your WCF calls will be made in the context of the web user rather than at the membership level.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.