如何使.NETWeb服务能够接收大量数据?
如何使.NET Web服务能够接收大量数据 我有一个.NETWeb服务,它应该接收几个大文件并将它们保存在本地硬盘上的一个目录中。在同一网络上另一台计算机上运行的试图调用Web服务的程序收到错误:行太长 有什么建议吗 谢谢, 路易斯 代码: 方法: 数据合同: 网络配置:如何使.NETWeb服务能够接收大量数据?,.net,web-services,wsdl,.net,Web Services,Wsdl,如何使.NET Web服务能够接收大量数据 我有一个.NETWeb服务,它应该接收几个大文件并将它们保存在本地硬盘上的一个目录中。在同一网络上另一台计算机上运行的试图调用Web服务的程序收到错误:行太长 有什么建议吗 谢谢, 路易斯 代码: 方法: 数据合同: 网络配置: 向我们展示一些代码,可能还有您的WCF配置或web.config。您是否尝试过此处提到的内容: Public Function ReceiveFiles(ByVal FileContents As String, B
向我们展示一些代码,可能还有您的WCF配置或web.config。您是否尝试过此处提到的内容:
Public Function ReceiveFiles(ByVal FileContents As String,
ByVal FileInfo As List(Of String),
ByVal listBinaryFileContents As List(Of Byte()),
ByVal listStringFileContents As List(Of String)) As String() Implements IReceiveFiles.GetDataReceiveFiles
<OperationContract()> Function GetDataReceiveFiles(ByVal FileContents As String,
ByVal FileInfo As List(Of String),
ByVal listBinaryFileContents As List(Of Byte()),
ByVal listStringFileContents As List(Of String)) As String()
<appSettings>
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
</appSettings>
<system.web>
<compilation debug="true" strict="false" explicit="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5"/>
</system.web>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the values below to false before deployment -->
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpsBinding" scheme="https" />
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<!--
To browse web app root directory during debugging, set the value below to true.
Set to false before deployment to avoid disclosing web app folder information.
-->
<directoryBrowse enabled="true"/>
</system.webServer>