【发布时间】:2014-12-02 14:24:39
【问题描述】:
我遇到了一个特殊的问题,然后 wcf 服务在 VS2013 上以调试模式在 http 上运行生成链接,并通过 https 运行在不同端口上的 wsdl。
如果我尝试转到http://localhost:53769/WebPricingService.svc?wsdl,它会运行几分钟并最终失败。
我对此并不关心,但是当我尝试使用 svcutil.exe 生成客户端并带有以下消息时它失败了
我已将mex 添加到配置中
<service behaviorConfiguration="wsServiceBehavior" name="Corp.WebServices.WebPricingService">
<endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsEndpointBinding" name="ConveyancingEndpoint" contract="Corp.Core.Interfaces.IWebPricingService"/>
<endpoint address="mex"
binding="mexHttpBinding"
contract="IMetadataExchange" />
</service>
绑定
<binding name="wsEndpointBinding" maxBufferPoolSize="2147483647"
maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="32" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="Transport">
<transport clientCredentialType="Windows" />
</security>
</binding>
为什么 wsdl 在不同的端口和协议上运行? 是否有简单的解决方法来生成客户端?
【问题讨论】:
标签: wcf visual-studio-2013 wsdl .net-4.5 webservice-client