bindingConfiguration vs bindingName

后端 未结 4 1425
逝去的感伤
逝去的感伤 2021-01-01 13:50

What exactly is the difference between bindingConfiguration and bindingName elements in a WCF endpoint element? The reason that I ask is I am creating an endpoint which use

4条回答
  •  迷失自我
    2021-01-01 14:17

    The binding= attribute just defines, which binding (protocol) you want - basicHttpBinding, wsHttpBinding, netTcpBinding etc.

    Those bindings all have system default values - if you don't specify any binding configuration, those system defaults will be used.

    What you've defined in your section of your config is a binding configuration - a set of parameters for your binding of choice that will be used instead of the system defaults.

    So the binding= and the bindingConfiguration= need to match - you cannot define one binding (e.g. basicHttpBinding) but then assign a binding configuration for a different binding.

    That however still doesn't explain why your https doesn't work - that must be some other problem. Can you elaborate a bit more? How does it not work? Just no response, or do you get an error (if so: what is that error??)

提交回复
热议问题