Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个应用程序代码,其中包含许多包含业务逻辑和数据访问层的类。我正在尝试将类移植到 Web 服务,但我必须为每个类创建一个 asmx。有没有办法解决这个问题?请帮忙
您可以使用单个 ASPX 页面并从客户端传递一个 Request["mode"] 变量,该变量将切换您序列化的业务对象(希望在 JSON 中)。不过,这会破坏您的 WSDL。