I have been asked this question in interview
how does XML and Soap work with WCF ?
can any one explain this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
WCF provides several options (bindings) for communicating between machines or processes. Some of these use a binary format (e.g. NetTcpBinding), whereas some of them use text over HTTP (e.g. BasicHttpBinding and WsHttpBinding).
When communicating with a WCF service over HTTP, for example using the BasicHttpBinding, you will be using SOAP, a messaging protocol which uses XML to format messages.
You can see the SOAP messages going between client and server by using the Service Trace Viewer tool that comes with the Windows SDK.
One advantage of WCF is that the underlying method of communication is abstracted away to a degree – you can write code to consume a WCF service without having to care about if SOAP/XML is going to be used, or binary. Of course, the actual implementation can be very important, so you still need to know what’s going on.