我正在向用 C# 编写的 asmx Web 服务添加方法重载,为了发布它,我需要将服务的 WebServiceBinding 属性更改为上面的属性。这样做似乎无害(网络服务只会被内部编写的应用程序使用,至少在可预见的 future ),但我是否遗漏了该选择的一些含义?
最佳答案
To implement method overloading in webservices first you must set the MessageName attribute of your webservice then set your webservice binding ConformsTo attribute to WsiProfiles.None and that’s it! Note that you can do second step in your Web.Config file for all webservices.( according to this blog post ).
关于c# - C# Web 服务中 "ConformsTo = WsiProfiles.None"的负面影响,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1260949/