一、问题
在调用远程web services接口时出现了以下问题:
二、可能的原因和解决方法
网站根目录里的web.config文件缺少了相应的配置信息
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.serviceModel> <bindings> <basicHttpBinding> <binding name="OSSysServiceSoap" /> </basicHttpBinding> </bindings> <client> <endpoint address="http://127.0.0.1/vsappgdhr/gdhr/webservices/OSSysService.asmx" binding="basicHttpBinding" bindingConfiguration="OSSysServiceSoap" contract="OSSysService.OSSysServiceSoap" name="OSSysServiceSoap" /> </client> </system.serviceModel> </configuration>