【发布时间】:2013-02-05 14:00:13
【问题描述】:
定义: 未能在结构或类中对函数进行分组,但我无法在浏览器上列出它们。 并获取 WSDL,因为无法在浏览器上查看 Web 方法。
*.asmx 文件如下所示:
public class myProfile : System.Web.Services.WebService
{
public struct AddressFunctions
{
//[WebMethod] here
}
public struct MembershipFunctions
{
//[WebMethod] here
}
}
目标: 我的方法是,以以下方式访问函数: myProfile.AddressFunctions.methodName();会工作的。
有没有办法解决这个问题?或者 为了可读性和易用性,你们如何实现在 Web 服务中对 Web 方法进行分组。
【问题讨论】:
标签: asp.net web-services c#-4.0 asmx webmethod