创建 WCF 配置文件时,我可能会在 Visual Studio 中收到此错误,因为 VS 编辑器不知道该扩展名。我需要知道将 transportClientEndpointBehavior 放在哪里,有什么帮助吗?谢谢。
<behaviors>
<endpointBehaviors>
<behavior name="sharedSecretClientCredentials">
<transportClientEndpointBehavior credentialType="SharedSecret">
<clientCredentials>
<sharedSecret issuerName="***********" issuerSecret="**********" />
</clientCredentials>
</transportClientEndpointBehavior>
<ServiceRegistrySettings discoveryMode="Public"/>
</behavior>
</endpointBehaviors>
...
</behaviors>
我对 basicHttpRelayBinding 也有疑问,我认为它应该包含在绑定中。