我正在 VS 2012 中为 WCF 进行测试。它具有自定义 Http 绑定,并在端点中使用。但是它给出了一个错误,它在测试时找不到元数据wcfclient.exe
以下是我在web.config
文件中制作的自定义代码。
<bindings>
<basicHttpBinding>
<binding name="MaxHttp" allowCookies="true"
maxReceivedMessageSize="20000000"
maxBufferSize="20000000"
maxBufferPoolSize="20000000">
<readerQuotas maxDepth="32"
maxArrayLength="200000000"
maxStringContentLength="200000000"/>
</binding>
</basicHttpBinding>
<!---->
</bindings>
<services>
<service name="AdventureW.Service.Database.AwService">
<endpoint address="http://localhost:49551" binding="basicHttpBinding" bindingConfiguration="MaxHttp" contract="AdventureW.Service.Database.IWsService"/>
</service>
</services>