Sign in
Carlos Figueira MSDN blog
General thoughts and usage examples about WCF, ASP.NET Web API, Windows Azure Mobile Services, testing and programming in general.
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
About
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Tags
ASP.NET
AspNetWebAPI
Azure
Azure Mobile Services
Channels
Codeplex
Cross-Domain
Extensibility
HTTP
JSON
Metadata
Mobile Service
MTOM
MVC
samples
Serialization
Silverlight
testing
WAMS
WCF
WCF Web HTTP
Web
Web API
Windows Azure
XML
Archive
Archives
May 2013
(1)
April 2013
(3)
March 2013
(2)
February 2013
(1)
January 2013
(1)
October 2012
(2)
September 2012
(4)
August 2012
(2)
July 2012
(2)
May 2012
(1)
April 2012
(2)
March 2012
(7)
February 2012
(8)
January 2012
(4)
December 2011
(4)
November 2011
(1)
October 2011
(3)
September 2011
(4)
August 2011
(4)
July 2011
(3)
June 2011
(4)
May 2011
(5)
April 2011
(5)
March 2011
(5)
February 2011
(1)
January 2011
(2)
December 2010
(3)
November 2010
(1)
October 2010
(1)
September 2010
(1)
August 2010
(1)
July 2010
(2)
June 2010
(1)
April 2010
(2)
August 2009
(1)
July 2009
(1)
April 2008
(2)
March 2008
(1)
January 2008
(1)
December 2007
(2)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Carlos Figueira MSDN blog
Enabling cross-domain calls for Silverlight apps on self-hosted web services
Posted
over 5 years ago
by
CarlosFigueira
39
Comments
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...
Carlos Figueira MSDN blog
WCF "Raw" programming model (Web) - receiving arbitrary data
Posted
over 5 years ago
by
CarlosFigueira
32
Comments
The previous post mentioned how to return arbitrary data from WCF services. To receive data, however, there is one extra step, which I'll try to explain here. Like returning arbitrary data, the key for accepting arbitrary (in any format) data is for...
Carlos Figueira MSDN blog
WCF "Raw" programming model (Web)
Posted
over 5 years ago
by
CarlosFigueira
28
Comments
I've seen quite a few times in the forums people asking how to control exactly how the data returned by a WCF service. People want to use a certain format for the output of the data which isn't (natively) supported by WCF, such as XML or JSON. A few examples...
Carlos Figueira MSDN blog
WCF Extensibility
Posted
over 2 years ago
by
CarlosFigueira
28
Comments
Over the next months I intend on writing a series of posts about the (many) extensibility points from WCF (up to .NET Framework 4.0). The cadence should be around one new post every 1-2 weeks (depending on the workload I have at work). WCF is a very...
Carlos Figueira MSDN blog
Enabling cross-domain calls for SL apps on self-hosted TCP services
Posted
over 3 years ago
by
CarlosFigueira
21
Comments
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...
Carlos Figueira MSDN blog
Implementing CORS support in ASP.NET Web APIs – take 2
Posted
over 1 year ago
by
CarlosFigueira
20
Comments
This post was written for the Beta version of the ASP.NET MVC 4. The updates needed to make them run in the latest bits (Release Candidate) are listed in this new post . The code for this post is published in the MSDN Code Gallery . Last post I showed...
Carlos Figueira MSDN blog
WCF Extensibility – Message Inspectors
Posted
over 2 years ago
by
CarlosFigueira
18
Comments
This post is part of a series about WCF extensibility points. For a list of all previous posts and planned future ones, go to the index page . The message inspectors are probably the most used extensibility points of the WCF runtime. Anytime you need...
Carlos Figueira MSDN blog
WCF Extensibility – IParameterInspector
Posted
over 2 years ago
by
CarlosFigueira
15
Comments
This post is part of a series about WCF extensibility points. For a list of all previous posts and planned future ones, go to the index page . The message inspectors, described in the previous post of this series, allows you complete control over the...
Carlos Figueira MSDN blog
Using TransferMode.StreamedResponse to download files in Silverlight 4
Posted
over 3 years ago
by
CarlosFigueira
14
Comments
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...
Carlos Figueira MSDN blog
Consuming REST/JSON services in Silverlight 4
Posted
over 3 years ago
by
CarlosFigueira
14
Comments
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...
Carlos Figueira MSDN blog
WCF Extensibility – IErrorHandler
Posted
over 2 years ago
by
CarlosFigueira
14
Comments
This post is part of a series about WCF extensibility points. For a list of all previous posts and planned future ones, go to the index page . Whenever an operation throws an (unhandled) exception, the WCF runtime will catch that exception to prevent...
Carlos Figueira MSDN blog
Implementing CORS support in ASP.NET Web APIs
Posted
over 1 year ago
by
CarlosFigueira
14
Comments
This post was written for the Beta version of the ASP.NET MVC 4. The updates needed to make them run in the latest bits (Release Candidate) are listed in this new post . The code in this post is published on the MSDN Code Gallery . By default, a web page...
Carlos Figueira MSDN blog
Implementing CORS support in WCF
Posted
over 1 year ago
by
CarlosFigueira
10
Comments
The code for this post can be downloaded from the MSDN Code Gallery . A pair of popular posts which I did a couple months back was to show how one can implement CORS (Cross-Origin Resource Sharing) in the net ASP.NET Web API framework. This week I...
Carlos Figueira MSDN blog
Getting user information on Azure Mobile Services
Posted
6 months ago
by
CarlosFigueira
10
Comments
With the introduction of the server-side authentication flow (which I mentioned in my last post ), it’s now a lot simpler to authenticate users with Windows Azure Mobile Services. Once the LoginAsync / login / loginViewControllerWithProvider:completion...
Carlos Figueira MSDN blog
WCF Extensibility – Behavior configuration extensions
Posted
over 2 years ago
by
CarlosFigueira
10
Comments
This post is part of a series about WCF extensibility points. For a list of all previous posts and planned future ones, go to the index page . Despite my personal displeasure with configuration , I understand that there are situations where one would...
Carlos Figueira MSDN blog
WCF streaming inside data contracts
Posted
over 2 years ago
by
CarlosFigueira
9
Comments
(A small break from the current WCF extensibility series, as I faced this issue helping a customer this week and I thought it would be worth sharing) In order to support transferring of large messages (e.g., uploading or downloading a large file),...
Carlos Figueira MSDN blog
WCF Extensibility - IServiceBehavior
Posted
over 2 years ago
by
CarlosFigueira
7
Comments
This post is part of a series about WCF extensibility points. For a list of all previous posts and planned future ones, go to the index page . The first behavior covered in this series is the IServiceBehavior . It can be used to inspect or change the...
Carlos Figueira MSDN blog
WCF Extensibility – Channels
Posted
over 2 years ago
by
CarlosFigueira
6
Comments
This post is part of a series about WCF extensibility points. For a list of all previous posts and planned future ones, go to the index page . Channels are possibly the most fundamental concept in WCF that (almost) nobody knows about. This is quite a...
Carlos Figueira MSDN blog
WCF Extensibility – Channels (server side)
Posted
over 2 years ago
by
CarlosFigueira
6
Comments
This post is part of a series about WCF extensibility points. For a list of all previous posts and planned future ones, go to the index page . Last week I introduced the channel model in WCF, with an emphasis on the channels at the client side. But that...
Carlos Figueira MSDN blog
Inferring schemas for JSON
Posted
over 2 years ago
by
CarlosFigueira
6
Comments
One recurring theme that I see in the forums is when a user has a sample JSON document (something that is returned by a service, for example), and he/she wants to deserialize similar JSON documents. That’s the case for most AJAX services which return...
Carlos Figueira MSDN blog
WCF Extensibility – Message Formatters
Posted
over 2 years ago
by
CarlosFigueira
6
Comments
This post is part of a series about WCF extensibility points. For a list of all previous posts and planned future ones, go to the index page . Message formatters are the component which do the translation between CLR operations and the WCF Message...
Carlos Figueira MSDN blog
Changing prefixes in XML responses for WCF services
Posted
over 3 years ago
by
CarlosFigueira
6
Comments
When responding to requests using any of the text/XML bindings (BasicHttpBinding / WSHttpBinding / CustomBinding with a TextMessageEncodingBindingElement), WCF has some specific prefixes which it uses corresponding to a certain namespaces. The SOAP namespace...
Carlos Figueira MSDN blog
Working with untyped JSON in a WCF service
Posted
over 3 years ago
by
CarlosFigueira
6
Comments
Since NetFX 3.5, WCF has support for working with JSON data. You can define your data contracts according to the JSON “schema” you expect to receive / want to return, plug them into your operation contracts, and your server is talking JSON...
Carlos Figueira MSDN blog
Mixing Add Service Reference and WCF Web HTTP (a.k.a. REST) endpoint does not work
Posted
over 1 year ago
by
CarlosFigueira
6
Comments
I’ve seen this question to many times in different forums, and answered in many different ways that I decided to write a post with more details about it. The title says it all, but I want to reiterate the answer that I had to give so many times: Using...
Carlos Figueira MSDN blog
Storing per user data in Azure Mobile Services
Posted
8 months ago
by
CarlosFigueira
5
Comments
Following up on a comment made in one of my posts, this one will talk about some ways to ensure that the data stored / retrieved in an Azure Mobile Services table is limited to the user which is using the application. That’s an interesting issue...
Page 1 of 5 (101 items)
1
2
3
4
5