Combine classic ASP.NET and ASP.NET MVC within one web application

后端 未结 3 1567
予麋鹿
予麋鹿 2021-02-06 02:21

We currently have a classic ASP.NET web application which serves as our API. It basically has a bunch of ASMX Web Services, but these are really cumbersome to work with from Jav

3条回答
  •  花落未央
    2021-02-06 03:04

    The whole goal of routing is to break the one-to-one association between URLs and files in the server’s file system. However, the routing system still does check the file system to see if an incoming URL happens to match a file or disk, and if so, routing ignores the request (bypassing any route entries that the URL might also match) so that the file will be served directly.

    So, to answer on a part of your question "is this possible at all": Yes, because routing system will recognize the .asmx file on the file system and it will process it in classic asp.net web services manner.

    For the second question I'm not sure because I haven't been doing anything complex with web service inside of the asp.net mvc application.

提交回复
热议问题