[英]wsHttpBinding on the wcf service and web reference on the client don't work
I am using wsHttpBinding
with a WCF service.我将
wsHttpBinding
与 WCF 服务一起使用。
I've added a web reference and I've got the web proxy (it is based on SoapHttpClientProtocol
).我添加了 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 ). 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 ).
When the client calls the service, I get the following error:当客户端调用服务时,我收到以下错误:
The SOAP action specified on the message, '', does not match the HTTP SOAP Action, 'http://tempuri.org/Service1/Operation1'.
Why doesn't the client (the web proxy) work with my WCF service?为什么客户端(web 代理)不能与我的 WCF 服务一起使用?
What steps should I take to make them work?我应该采取哪些步骤使它们起作用?
I am running .NET FW 3.5 and ASP.NET 2.0.我正在运行 .NET FW 3.5 和 ASP.NET 2.0。
You cannot consume service exposed on wsHttpBinding
with default configuration by old ASMX proxy.您不能使用旧 ASMX 代理使用默认配置在
wsHttpBinding
上公开的服务。 You must either use add service reference / svcutil or change your binding to basicHttpBinding
.您必须使用add service reference /svcutil 或将绑定更改为
basicHttpBinding
。 Default configuration of wsHttpBinding
uses advanced security and ASMX doesn't support it. wsHttpBinding
的默认配置使用高级安全性,而 ASMX 不支持它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.