当前位置: 动力学知识库 > 问答 > 编程问答 >

web services - Does WCF really respect the standards for WS-Addressing Soap Faults

问题描述:

I am interested whether Predefined Faults specified in Web Services Addressing 1.0 - SOAP Binding are handled by WCF.

For example, does it respond with a "wsa:ActionMismatch" SoapFault in case the action is mismatch (specified in standard at 6.4.1.6 wsa:ActionMismatch).

Or does it respond with a SoapFault with subcode="wsa:MessageAddressingHeaderRequired" for any missing ws-addressing header (specified in standard at 6.4.2 Message Addressing Header Required)?

Based on these standards, such SoapFault should look like this:

<Fault xmlns="http://www.w3.org/2003/05/soap-envelope">

<Code>

<Value>Sender</Value>

<Subcode>

<Value>wsa:MessageAddressingHeaderRequired</Value>

</Subcode>

</Code>

<Reason>

<Text xml:lang="en-US">A required header representing a Message Addressing Property is not present</Text>

</Reason>

<Details>

<wsa:ProblemHeaderQName>wsa:MessageID</wsa:ProblemHeaderQName>

</Details>

</Fault>

I am curios what configuration needs to be made in order to respond with such SoapFault messages.

分享给朋友:
您可能感兴趣的文章:
随机阅读: