使用wsHttpBinding通过WCF Web服务获取异常操作超时
问题描述:
我已经在IIS中托管了Web服务
当我在客户端使用添加Web引用"使用该服务并运行应用程序时,出现了"Operation TimeOut"异常.
When i am consuming that service using Add Web Reference in the client side and running the application I am getting the exception "Operation TimeOut "
,但可以通过使用添加服务参考"成功运行.
But it is successfully running by using "Add Service Reference"
答
Hi
您的客户端应用程序需要WSE才能使用使用wsHttpBinding的WCF服务.或者,将WCF服务更改为使用basicHttpBinding.
Your client application needs WSE in order to consume a WCF service that uses wsHttpBinding. Alternatively change the WCF service to use basicHttpBinding.
致谢
安迪