Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 07, 2012 02:12 AM by Peter pi - MSFT
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.
Feb 07, 2012 02:12 AM|LINK
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