2

我正在使用wsHttpBindingWCF 服务。

我添加了一个网络参考,并且我有网络代理(它基于SoapHttpClientProtocol)。

我还尝试使用wcf 服务( http://zzzz/zz.svc?wsdlwsdl.exe )生成的实际 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。

4

1 回答 1

6

您不能使用wsHttpBinding旧 ASMX 代理使用默认配置公开的服务。您必须使用添加服务引用/svcutil 或将绑定更改为basicHttpBinding. 默认配置wsHttpBinding使用高级安全性,ASMX 不支持。

于 2011-07-11T12:14:57.013 回答