c# - WCF - 使用 SoapUI 测试时出现 SOAP 操作不匹配错误

标签 c# .net wcf soapui

如何解决这个问题?

>  <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"
> xmlns:a="http://www.w3.org/2005/08/addressing">    <s:Header>
>       <a:Action s:mustUnderstand="1">http://www.w3.org/2005/08/addressing/fault</a:Action>
> </s:Header>    <s:Body>
>       <s:Fault>
>          <s:Code>
>             <s:Value>s:Sender</s:Value>
>             <s:Subcode>
>                <s:Value>a:ActionMismatch</s:Value>
>             </s:Subcode>
>          </s:Code>
>          <s:Reason>
>             <s:Text xml:lang="en-US">The SOAP action specified on the message, '', does not match the HTTP SOAP Action,
> 'XX.XXX.WebServices.XXXXService/XXXXService/AuthenticateUser'.</s:Text>
>          </s:Reason>
>          <s:Detail>
>             <a:ProblemHeaderQName>a:Action</a:ProblemHeaderQName>
>          </s:Detail>
>       </s:Fault>    </s:Body> </s:Envelope>

最佳答案

配置 SOAPUI 发送此 http header :

SOAPAction=XX.XXX.WebServices.XXXXService/XXXXService/AuthenticateUser

关于c# - WCF - 使用 SoapUI 测试时出现 SOAP 操作不匹配错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17595847/

相关文章:

.net - 在一个租户中创建多个企业应用程序注册到同一 Web 应用程序

wcf - 模拟 PostSharp 属性的最简单方法

c# - WCF 传递文件流

wcf - 唯一证书认证和REST服务

c# - 有关 ASP.NET 2.0 应用程序设计的问题

c# - C# 中的内联 switch/case 语句

C# 重新抛出异常 : how to get the exception stack in the IDE?

.net - 在 VB.Net 中使用 Enter 键的 Tab 键功能

c# - .Net 的目录服务抛出一个奇怪的异常

java - 可以在迭代过程中改变的可迭代集合