Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>Yes, you can consume a WCF service with any kind of SOAP or REST client.</strong></p> <blockquote> <p>SOAP is a protocol which uses HTTP, TCP etc to transfer the messages but REST uses only HTTP to transfer messages.</p> </blockquote> <p>This is too broad to answer with either Yes or No. Strictly related to your question, we have this characteristics for SOAP:</p> <ul> <li>SOAP is a protocol;</li> <li>SOAP messages can be sent over HTTP, TCP, SMTP etc (any protocol actually). SOAP is a messaging protocol used on top of another transport protocol;</li> <li>most used protocols for SOAP are HTTP and HTTPS;</li> </ul> <p>Now the characteristics for REST:</p> <ul> <li>REST is an architectural style of building applications;</li> <li>REST is not actually bound to the HTTP protocol, it can use any transport protocol;</li> <li>Everybody does REST with HTTP and HTTPS;</li> </ul> <blockquote> <p>SOAP transfers the messages in XML format only but REST uses JSON or XML.</p> </blockquote> <p>SOAP can only send XML messages, it's part of the protocol. You actually need to use a specific format for the XML with Envelope, Header and Body tags.</p> <p>REST is about representations of resources. The representation can have any structure and can be in any format, not just XML or JSON (although XML and JSON are the most used);</p> <blockquote> <p>REST doesn't involve the same traffic overhead as SOAP (as SOAP involves the complex XML WSDL generation).</p> </blockquote> <p><a href="http://en.wikipedia.org/wiki/Web_Services_Description_Language" rel="nofollow">WSDL</a> is not involved in the actual call of operations, it's something separate to describe the SOAP web service. REST has something similar (although not very used) called <a href="http://en.wikipedia.org/wiki/Web_Application_Description_Language" rel="nofollow">WADL</a>. You need to marshall/unmarshall your data with both SOAP and REST so the overhead is most of the time not an issue (the SOAP envelope is not that big).</p> <blockquote> <p>Has anyone developed basichttpbinding WCF service and provided this to a non .net client like Java, mobile devices etc to make it interoperable? Is it possible for non .net clients to consume WCF other than REST?</p> </blockquote> <p>That's the idea with web services (SOAP or RESTful), to be called from any kind of clients. It's a method of communications between two machines. The implementation of the machines does not matter (Java, C#, PHP, Python etc).</p> <p>WCF is a web service framework that can expose the service as both SOAP or REST API. It can be called from any kind of client.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload