MTOMエンコードとカスタムバインディング
-
30-09-2019 - |
質問
カスタムバインディングとMTOMエンコードを構成するにはどうすればよいですか?以下に示すようなカスタムバインディングがあります、
<customBinding>
<binding name="stsBinding">
<security authenticationMode="UserNameOverTransport"
requireDerivedKeys="false"
keyEntropyMode="ServerEntropy"
requireSecurityContextCancellation="false"
requireSignatureConfirmation="false">
</security>
<httpsTransport />
</binding>
</customBinding>
そして、私のMTOMバインディングは以下のようです、
<basicHttpBinding>
<binding name="HttpStreaming"
maxReceivedMessageSize="2147483647"
messageEncoding="Mtom"
transferMode="Streamed"/>
</basicHttpBinding>
これを組み合わせるにはどうすればよいですか?
解決
メッセージエンコード要素を追加する必要があります。
<customBinding>
<binding name="stsBinding">
<security authenticationMode="UserNameOverTransport"
requireDerivedKeys="false"
keyEntropyMode="ServerEntropy"
requireSecurityContextCancellation="false"
requireSignatureConfirmation="false">
</security>
<mtomMessageEncoding />
<httpsTransport />
</binding>
</customBinding>
他のヒント
これはオンラインです 道具 通常のバインディングをカスタムバインディングに変換するのに役立ちます。
次のような制限を削除します maxBufferSize
それらの多くはツールによってサポートされていないため、バインディングから。その後追加できます。
所属していません StackOverflow