当前位置: 代码迷 >> Web Service >> 调用远路的webservice报错
  详细解决方案

调用远路的webservice报错

热度:116   发布时间:2012-11-04 10:42:42.0
调用远程的webservice报错
我的webservice是在远程服务器上的,在本地引用这个ws后,运行报错:
C# code
Could not find default endpoint element that references contract 'ServiceReference1.UrlServiceNewSoap' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.
是不是要在本地配置下呢?

------解决方案--------------------
本地不需要配置什么,这个WSDL貌似有问题啊。
------解决方案--------------------
本地没问题吗?
------解决方案--------------------
帖下config中 <system.serviceModel>中的<client>部分。
  相关解决方案