webservice中遇到的一些問題

一、傳輸數據量大時,webservice MaxReceivedMessageSize :已超過傳入消息(65536)的最大消息大小配額
應用的配置文件中添加如下:

    <system.serviceModel>
        <bindings>
            <basicHttpBinding>
                <binding name="WebService1Soap"     maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"   />
            </basicHttpBinding>
        </bindings>
        <client>
            <endpoint address="http://127.0.0.1/WebService1.asmx" binding="basicHttpBinding"
                bindingConfiguration="WebService1Soap" contract="ServiceReference1.WebService1Soap"
                name="WebService1Soap" />
        </client>
    </system.serviceModel>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章