The asmx web service uses SOAP where xml is the message format. I assume that is the case when an aspx client uses WCF that uses basichttpbinding. When a client written in an MVC3 application uses the nettcpbinding with a WCF, how the data
is transferred between the server to the client? Is it still xml message or as objects through process boundaries where there is no serialization and de-serialization of the objects.
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.
castlehills
Member
259 Points
171 Posts
What binding uses xml message in WCF?
Feb 05, 2012 10:21 PM|LINK
The asmx web service uses SOAP where xml is the message format. I assume that is the case when an aspx client uses WCF that uses basichttpbinding. When a client written in an MVC3 application uses the nettcpbinding with a WCF, how the data is transferred between the server to the client? Is it still xml message or as objects through process boundaries where there is no serialization and de-serialization of the objects.
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