WCF: Multiple binding configurations for a single service

前端 未结 2 1067
栀梦
栀梦 2021-02-07 09:55

I\'m working on a client-server application (.NET 4 WPF, WCF) that must support backwards compatibility. In other words, old clients should be compatible with new servers (and v

相关标签:
2条回答
  • 2021-02-07 10:44

    You can have 2 two different bindings for the same service contract, but you'll need to create separate service nodes in the config and you will also need separate endpoints defined. So create a new endpoint for the binary formatted service, and have the new version of the client reference it.

    0 讨论(0)
  • 2021-02-07 10:46

    You basically need 2 endpoints for the same service exposed at different addresses and aligned with different bindings. This may help you.

    0 讨论(0)
提交回复
热议问题