【发布时间】:2020-03-09 08:34:14
【问题描述】:
首先,对于任何错误,我们深表歉意。英语不是我的母语
当我设置时,我有一个与 SOAP WS 通信的应用程序
<defaultProxy enabled="true" useDefaultCredentials="true">在 WinForm 应用程序的 app.config 上,请求响应是正确的,但如果我把它放在 WCF Windows 服务的同一部分,我会得到响应:没有端点监听。
<binding name="BasicHttpBinding_IGDServices" receiveTimeout="00:10:00"
sendTimeout="00:10:00" maxBufferPoolSize="2147483647" maxBufferSize="2147483647"
maxReceivedMessageSize="2147483647" textEncoding="utf-8" useDefaultWebProxy="true"
messageEncoding="Mtom" />
<binding name="mywsname" receiveTimeout="00:10:00"
sendTimeout="00:10:00" maxBufferPoolSize="2147483647" maxBufferSize="2147483647"
maxReceivedMessageSize="2147483647" useDefaultWebProxy="true">
<readerQuotas maxStringContentLength="2147483647" />
<security mode="Transport" />
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="mywsendpoint"
binding="mywsbinding" bindingConfiguration="mywsbinding"
contract="mywscontract" name="mywsname" />
我尝试设置代理,但得到响应:输入字符串格式不正确
<defaultProxy enabled="true" useDefaultCredentials="true">
<proxy proxyaddress="myproxyadressandport"/>
</defaultProxy>
两个应用程序的所有参数或方法都以相同的方式实现。
有人可以帮我吗?
【问题讨论】: