簡體   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