悲催,弄了半天还是大于8K就不行,wcf的web.config配置如下(新手没分~~~):
<bindings>
<basicHttpBinding>
<binding name="flowbinding" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
<readerQuotas maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647"/>
<security mode="None">
</security>
</binding>
</basicHttpBinding>
</bindings>
<services>
<service name="JPMFlowService.JPMFlowService">
<endpoint address="http://localhost:2449/JPMFlowService.svc" binding="basicHttpBinding" bindingConfiguration="flowbinding"
contract="JPMFlowService.JPMFlowService" />
</service>
</services>
<bindings>
<basicHttpBinding>
<binding name="flowbinding" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
<readerQuotas maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647"/>
<security mode="None">
</security>
</binding>
</basicHttpBinding>
</bindings>
<services>
<service name="JPMFlowService.JPMFlowService">
<endpoint address="http://localhost:2449/JPMFlowService.svc" binding="basicHttpBinding" bindingConfiguration="flowbinding"
contract="JPMFlowService.JPMFlowService" />
</service>
</services>
解决方案 »
- 配置网站出错误:用户 'sa' 登录失败。该用户与可信 SQL Server 连接无关联。请教?
- 123
- 分页问题!(解决掉后另送满分!100分!)
- .net3.5的web.config文件怎么配置啊?
- 很简单的一个问题,但是一下午都没找到解决办法!看看你行不?
- asp.net 如何取一个EXEL文件里所有工作表的名称?
- 实现控制字符长度出错?
- 请问,你们都用什么菜单啊,aspnetmenu的下拉时被遮挡的问题,有人说的是没有办法解决的,哎,看到我那aspnetmenu惨不忍睹的样子,我该怎么办呢
- datawindow.net 赋值问题
- ASP.NET+C#+OWC+立方体
- 急!怎样在隐藏层中显示数据详细资料
- Page_Load。。。。。
http://hi.csdn.net/space.html
private void button1_Click(object sender, EventArgs e)
{
ServiceReference1.JPMFlowServiceClient server = new ServiceReference1.JPMFlowServiceClient(); string flowXML = "";
StreamReader sr = new StreamReader(@"C:\Documents and Settings\Administrator\桌面\flow.txt", System.Text.Encoding.Default);
flowXML = sr.ReadToEnd();
server.UpdateFlow(flowXML);
}
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IJPMFlowService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="2147483647" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:2449/JPMFlowService.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IJPMFlowService"
contract="ServiceReference1.IJPMFlowService" name="BasicHttpBinding_IJPMFlowService" />
</client>
</system.serviceModel>
</configuration>
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IJPMFlowService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="2147483647" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:2449/JPMFlowService.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IJPMFlowService"
contract="ServiceReference1.IJPMFlowService" name="BasicHttpBinding_IJPMFlowService" />
</client>
</system.serviceModel>
</configuration>