Wednesday 15 April 2015

.net - Easiest way to add REST services to a legacy WebForms application -



.net - Easiest way to add REST services to a legacy WebForms application -

i have old webforms application next setup:

using .net version 4 site not configured mvc running visual studio 2013

the site quite big , complex has been continuously developed on 7 years.

what best way start adding rest services application? want have minimal impact on rest of site. upgrading .net version, installing mvc etc potentially break things on rest of site, , prefer not have deal possibility if there easier alternative.

i have wcf soap services running ok, have had no success in implementing wcf rest services (see my other question here).

i got working using webapi. trick install old version of webapi running next command in nuget console:

get-project <myprojectname> | install-package microsoft.aspnet.webapi -version 4.0.30506

webapi v2 doesn't back upwards .net 4.

to cut down potential impact commented out extensionless url handlers add together web.config webapi nuget package.

.net rest webforms

No comments:

Post a Comment