2
目前我看着在VS2005的.NET Web引用问题动态网页引用是否真的动态?
我有多个动态Web引用多个Web应用程序,现在在web.config中我看到了下面的代码:
<applicationSettings>
<MainWeb.Properties.Settings>
<setting name="MainWeb_localhost_WebService" serializeAs="String">
<value>http://localhost/test/WebService.asmx</value>
</setting>
</MainWeb.Properties.Settings>
</applicationSettings>
但是因为我在不同的应用程序中使用相同的Web服务,所以我想将该web引用放置在machine.config中,但正如您所看到的,Web引用的名称是从Web应用程序名称转移的,因此名称根本不是动态的。
我不想在machine.config中为同一个Web服务放置10个不同的Web引用。
所以现在是我的问题,如果有人知道这个isseu一个很好的解决方案/解决方法。