Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to receive SOAP fault from WCF service
    primarykey
    data
    text
    <p>I am trying to send a soap fault from BizTalk to a .NET client. BizTalk has no out of the box way of exposing fault contracts so I am creating the fault message in a messageinspector (BeforeSendReply)</p> <p>I have a .NET client that has a service reference to the BizTalk without any knowledge of the fault contract. The BizTalk WCF service is configured to receive a request and return a fault (for testing).</p> <p>When the client receives the fault from BizTalk I get: "The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error."</p> <p>When I turn on message tracking I can se that a fault message indeed is tracked at the transport level.</p> <pre><code> &lt;s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"&gt; &lt;s:Header&gt; &lt;a:To s:mustUnderstand="1"&gt;http://www.w3.org/2005/08/addressing/anonymous&lt;/a:To&gt; &lt;/s:Header&gt; &lt;s:Body&gt; &lt;s:Fault&gt; &lt;s:Code&gt; &lt;s:Value&gt;s:Client&lt;/s:Value&gt; &lt;/s:Code&gt; &lt;s:Reason&gt; &lt;s:Text xml:lang="en-US"&gt;BTSError&lt;/s:Text&gt; &lt;/s:Reason&gt; &lt;s:Detail&gt;&lt;DaxFaultContract xmlns="http://MyNamespace"&gt; &lt;ErrorCode&gt;1&lt;/ErrorCode&gt; &lt;ErrorText&gt;This is an exception&lt;/ErrorText&gt; &lt;/DaxFaultContract&gt;&lt;/s:Detail&gt; &lt;/s:Fault&gt; &lt;/s:Body&gt; &lt;/s:Envelope&gt; </code></pre> <p>I thought, that even without any knowledge of DaxFaultContract the client would be able to throw a untyped FaultException.</p> <p>What have I missed?</p> <p>EDIT:</p> <p>This actually works for WSHttpBinding. The problem occurs when using net named pipe binding. What is the difference in this case?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload