调用远程的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>部分。