Carlos Figueira MSDN blog

General thoughts and usage examples about WCF, ASP.NET Web API, Windows Azure Mobile Services, testing and programming in general.

Browse by Tags

Tagged Content List
  • Blog Post: Using relative addresses for services in Silverlight applications

    One of the biggest complaints about how Add Service Reference works for Silverlight applications is that the address it creates on the client config file (ServiceReferences.ClientConfig) points to the VS "test" web service (Cassini), something like http://localhost:12345/Service1.svc. It works perfectly...
  • Blog Post: Enabling cross-domain calls for SL apps on self-hosted TCP services

    On a post a couple of years back, I showed a solution to enable cross-domain calls for Silverlight apps on self-hosted WCF services . In Silverlight 4, we added a new transport (net.tcp), which needs its own policy file as well (see more details at http://blogs.msdn.com/b/silverlightws/archive/2010/04...
  • Blog Post: Using TransferMode.StreamedResponse to download files in Silverlight 4

    After seeing some questions about this new feature added in Silverlight 4, I decided to post an example to see how it can be used in some real world scenarios. This new mode was added mostly to enable the performance improvements in the Polling Duplex protocol , but it can also be used by itself, such...
  • Blog Post: Consuming REST/JSON services in Silverlight 4

    In the previous post, which talked about the new Web programming model support for SL4, I mentioned that the support for strongly-typed consumption of REST/JSON services wasn't available out of the box. This post will show how to plug additional code to WCF in Silverlight to enable that. It will make...
  • Blog Post: Consuming REST/POX services in Silverlight 4

    Silverlight 4, which was just released, comes with some functionality to consume REST/POX services with the same programming model in WCF (i.e., the functionality equivalent to the WebChannelFactory<T> in the desktop version). The support is limited to XML services (i.e., JSON is not supported...
  • Blog Post: Enabling cross-domain calls for Silverlight apps on self-hosted web services

    In order for a Silverlight (or Flash) app coming from one domain to be able to consume data from services in a different domain, the service must "allow" the app to do so by providing a policy file which grants access (to prevent all sorts of cross-site scripting attacks). This policy file...
Page 1 of 1 (6 items)