繁体   English   中英

wcf 服务上的 wsHttpBinding 和客户端上的 web 参考不起作用

[英]wsHttpBinding on the wcf service and web reference on the client don't work

我将wsHttpBinding与 WCF 服务一起使用。

我添加了 web 参考,并且我有 web 代理(它基于SoapHttpClientProtocol )。

Also I've tried to build a proxy using wsdl.exe and the actual wsdl generated by the wcf service ( http://zzzz/zz.svc?wsdl ).

当客户端调用服务时,我收到以下错误:

The SOAP action specified on the message, '', does not match the HTTP SOAP Action, 'http://tempuri.org/Service1/Operation1'.

为什么客户端(web 代理)不能与我的 WCF 服务一起使用?

我应该采取哪些步骤使它们起作用?

我正在运行 .NET FW 3.5 和 ASP.NET 2.0。

您不能使用旧 ASMX 代理使用默认配置在wsHttpBinding上公开的服务。 您必须使用add service reference /svcutil 或将绑定更改为basicHttpBinding wsHttpBinding的默认配置使用高级安全性,而 ASMX 不支持它。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM