MTOM Encoding and Custom binding
-
30-09-2019 - |
문제
How do I configure custom binding and MTOM encoding? I have a custom binding like given below,
<customBinding>
<binding name="stsBinding">
<security authenticationMode="UserNameOverTransport"
requireDerivedKeys="false"
keyEntropyMode="ServerEntropy"
requireSecurityContextCancellation="false"
requireSignatureConfirmation="false">
</security>
<httpsTransport />
</binding>
</customBinding>
And my MTOM binding is like below,
<basicHttpBinding>
<binding name="HttpStreaming"
maxReceivedMessageSize="2147483647"
messageEncoding="Mtom"
transferMode="Streamed"/>
</basicHttpBinding>
How do I combine this?
해결책
You have to add message encoding element:
<customBinding>
<binding name="stsBinding">
<security authenticationMode="UserNameOverTransport"
requireDerivedKeys="false"
keyEntropyMode="ServerEntropy"
requireSecurityContextCancellation="false"
requireSignatureConfirmation="false">
</security>
<mtomMessageEncoding />
<httpsTransport />
</binding>
</customBinding>
다른 팁
This online tool can help convert normal bindings to custom bindings.
Remove any limits like maxBufferSize
from the binding, because many of those are not supported by the tool. You can add it after.
제휴하지 않습니다 StackOverflow