找来找去,在CSDN 里看到高手解答了.
原来 WebService 传递参数时,不能使用 DataTable
如果需要使用DataTable 那就要用 DataSet 包装起来.
如果担心数据太大,可以在 Web.Config 中做以下配置:
<system.web> <httpRuntime maxRequestLength="1073741824" maxQueryStringLength="1073741824" executionTimeout="3600" /> </system.web> <security> <requestFiltering> <requestLimits maxAllowedContentLength="1073741824"/> </requestFiltering> </security> <webServices> <jsonSerialization maxJsonLength="102400000" /> </webServices>