First of all, the communication between server and client in WCF, you must make sure the binding (protocol) at the server and client are same, for example, if you are using BasicHttpBinding on the client side, then you must ensure that the service has a
BasicHttpBinding, otherwise, it cannot communicate. As we know, one WCF service can be lie on different port and each port can have one binding (protocol), so if the service has netTcpBinding, you can also use netTcpBinding to communication with it on the
client side. So as for you are using basichttpbinding and netTcpbinding at the same time on the client side, they are use their own message format to pass data, they do not affect each other.
Peter pi - M...
Star
12871 Points
1786 Posts
Re: What binding uses xml message in WCF?
Feb 07, 2012 02:12 AM|LINK
Hi,
First of all, the communication between server and client in WCF, you must make sure the binding (protocol) at the server and client are same, for example, if you are using BasicHttpBinding on the client side, then you must ensure that the service has a BasicHttpBinding, otherwise, it cannot communicate. As we know, one WCF service can be lie on different port and each port can have one binding (protocol), so if the service has netTcpBinding, you can also use netTcpBinding to communication with it on the client side. So as for you are using basichttpbinding and netTcpbinding at the same time on the client side, they are use their own message format to pass data, they do not affect each other.
Hope this helps
Regards,
Peter
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework