简体   繁体   中英

Call a .asmx web Service from another .asmx web service

can we call a web service from another web service.

i have tried adding web reference and getting the below erro

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)

pls help

Extract the methods to separate class. and access those common methods from that class. so both of the services can share the methods you want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM