WCF 端  <system.web>    

<httpRuntime maxRequestLength="2147483647" />  

</system.web>

 

<binding name="NewBinding0" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"                     messageEncoding="Text">          

<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"   maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />       

  </binding>  <service behaviorConfiguration="newBehavior" name="Com.Yst.InternalAPI.FileService">    

     <endpoint address="" binding="basicHttpBinding" bindingConfiguration="NewBinding0"           contract="Com.Yst.InternalAPI.IFileService" />      

</service>

 

客户端  <system.web>  

   <httpRuntime maxRequestLength="2147483647" />  

</system.web>

  <binding name="BasicHttpBinding_IFileService" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"                     messageEncoding="Text">          

<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"  maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />      

   </binding>

  <services>    

   <service name="BasicHttpBinding_IFileService">     

    <endpoint address="http://api.aa.com/Services/FileService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IFileService" contract="InternalAPI_FileService.IFileService">        

</endpoint>            

  </service>  

   </services>

<client>    

   <endpoint address="http://api.aa.com/Services/FileService.svc"   binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IFileService"   contract="InternalAPI_FileService.IFileService" name="BasicHttpBinding_IFileService" />

  </client>

相关文章:

  • 2021-08-22
  • 2021-07-19
  • 2022-12-23
  • 2022-01-23
  • 2022-12-23
  • 2021-08-20
  • 2022-12-23
  • 2021-12-24
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
  • 2021-12-15
  • 2021-09-05
相关资源
相似解决方案