私はWSDLファイルからSAP SOAPサービスをサポートしており、デフォルト値を超えるまでeverythignは正常に機能しています。C#SAP SOAP MaxReceivedMessageSize、どこに追加しますか?
私は次のエラーを取得:
The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.
通常、私は私のapp.configファイルを変更し、上限を追加しますが、動作しないようです。
だからどこに追加すればよいですか?
QueryMarketingLeadInClient m_SAP_Query = new QueryMarketingLeadInClient("binding");
app.configを
<system.serviceModel>
<bindings>
<customBinding>
<binding name="binding_SOAP12">
<mtomMessageEncoding />
<httpsTransport authenticationScheme="Basic" />
</binding>
<binding name="binding">
<mtomMessageEncoding messageVersion="Soap11WSAddressing10" />
<httpsTransport authenticationScheme="Basic" />
</binding>
</customBinding>
</bindings>
<client>
<endpoint address="https://sap.adrress.here"
binding="customBinding" bindingConfiguration="binding_SOAP12"
contract="QueryMarketingLeadIn" name="binding_SOAP12" />
<endpoint address="https://sap.adrress.here"
binding="customBinding" bindingConfiguration="binding" contract="QueryMarketingLeadIn"
name="binding" />
</client>
</system.serviceModel>