Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MTOM Encoding and Custom binding

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?

like image 974
blue Avatar asked Sep 03 '10 18:09

blue


1 Answers

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> 
like image 188
Ladislav Mrnka Avatar answered Oct 05 '22 00:10

Ladislav Mrnka