简体   繁体   中英

WCF on an existing asp.net webforms

i have an ASP.NET web forms that i want to start building an iPhone application for. and for that i think the best way is to expose y methods using WCF, and this my first time with WCF.

The project i currently have is a website created using: File > New > Website, not File > New > ASP.NET Web Forms project.

My questions are:

  1. Can i use the code that i already have on my website, or i have to recreate the methods as WCF web methods.
  2. Should i add WCF services to my current project or i have to create a new WCF project? if the second option how to deploy it ?

If there is a tutorial on how to do it, it would appreciated.

Thanks in advance.

There are new improvements to the ASP.NET framework.

You can expose your existing Web Forms functions using Web API.

One ASP.NET - Making JSON Web APIs with ASP.NET MVC 4 Beta and ASP.NET Web API

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM