Today at the SDP I gave a lecture on the different ways we can communicate with the web from Silverlight 4. We talked about the different HTTP Stacks Silverlight offers and the many communication types & technologies you can use, such as: Simple http requests Restful services Syndication (Rss/Atom) feeds ASMX Web Services WCF services WCF Data Services TCP communication UDP communication Yes, you can do all the above with Silverlight 4 ! In addition, we talked about different WCF scenarios that...
In the past, when we tried to connect from Silverlight 2 to WCF Services that threw exceptions (every now and then), we got the famous “Not found” Communication Exception. The reason we didn’t get a SOAP Fault is that WCF returns SOAP Fault responses with a HTTP code of 500 – this is according to SOAP protocol , but the browser doesn’t allow 500 responses to be returned to Silverlight – it replaces them with a CommunicationException and thus hides the real fault that returned. When we moved to Silverlight...