WCF调用无响应

FeeLingNET 2012-06-12 04:22:13
调用某个WCF时,WCF的逻辑已经完成,并且执行完成,没有报错。可是再前端始终收不到WCF执行完成的信息。
如:

clientUpload.UploadFile(uploadRequestInfo);

response.write("aaaa");

确定UploadFile已经调用成功。可以就是不执行response.write("aaaa")

谢谢。
...全文
158 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
FeeLingNET 2012-06-12
  • 打赏
  • 举报
回复
客户端配置

<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IUpLoadService" closeTimeout="00:00:10"
openTimeout="00:00:05" receiveTimeout="00:00:30" sendTimeout="01:00:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="Transport">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="https://192.168.128.1:8001/WCF/UpLoadService.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IUpLoadService"
contract="UpLoadService.IUpLoadService" name="BasicHttpBinding_IUpLoadService" />
</client>
</system.serviceModel>

服务端配置

<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
<bindings>
<basicHttpBinding>
<binding name="XXX.UpLoadService" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" transferMode="Streamed" receiveTimeout="00:20:00">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
<security mode="Transport">
</security>
</binding>
<binding name="basicHttpBindingSettings" allowCookies="true" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" messageEncoding="Text">

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

<security mode="Transport">

<transport clientCredentialType="None"/>

</security>

</binding>
</basicHttpBinding>

</bindings>
<services>
<service behaviorConfiguration="UpLoadServiceBehavior" name="XXX.UpLoadService">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="XXX.UpLoadService" contract="XXX.IUpLoadService">
</endpoint>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="UpLoadServiceBehavior">
<serviceMetadata httpGetEnabled="false"/>
<dataContractSerializer maxItemsInObjectGraph="2147483647"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
<serviceThrottling maxConcurrentCalls="500" maxConcurrentSessions="500" maxConcurrentInstances="500"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧