代码
Web.config
<endpoint address="https://localhost/webapi/ProductData.svc/Secured"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IProductData"
contract="Client.IProductData" name="BasicHttpBinding_IProductDataSecured" />
<endpoint address="https://fow01003.fbce.local/webapi/ProductData.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IProductData1"
contract="Client.IProductData" name="BasicHttpBinding_IProductData" />
控制器
client = new ProductDataClient("BasicHttpBinding_IProductData"); //This Works
client.Test(); // This fails
错误信息
异常: 没有端点在https://fow01003.fbce.local/webapi/ProductData.svc处接收消息。这通常是由于地址或SOAP操作不正确引起的。如有InnerException,请参阅更多详细信息。
InnerException: "远程服务器返回错误:(404)未找到。"
问题
如上所示,没有端点在监听。但是,当我访问https://fow01003.fbce.local/webapi/ProductData.svc时,它显示服务正在运行,并且我可以检查包含所有信息的wsdl。
(PS. FOW01003.fbce.local = localhost).
我应该采取哪些步骤以找出真正出了什么问题?