从另一个.asmx Web服务调用.asmx Web服务

时间:2013-04-05 11:01:42

标签: c# web-services

我们可以从其他Web服务调用Web服务吗?

我尝试添加网络参考并获取以下错误

System.Configuration.ConfigurationErrorsException was caught
  Message=The current configuration system does not support user-scoped settings.
  Source=System
  BareMessage=The current configuration system does not support user-scoped settings.
  Line=0
  StackTrace:
       at System.Configuration.LocalFileSettingsProvider.GetPropertyValues(SettingsContext context, SettingsPropertyCollection properties)
       at System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider)
       at System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName)
       at System.Configuration.SettingsBase.get_Item(String propertyName)
       at System.Configuration.ApplicationSettingsBase.GetPropertyValue(String propertyName)
       at System.Configuration.ApplicationSettingsBase.get_Item(String propertyName)

请帮助

1 个答案:

答案 0 :(得分:0)

提取方法以分离类。并从该类访问那些常用方法。所以这两个服务都可以共享你想要的方法。