We get denied due to a cross site request error. Returning JSON-P would fix this problem but we are unsure of the best way to approach this (that's assuming JSON-P is the right approach to begin with).

I was able to successfully implement easyXDM to enable cross-domain support to a WCF Web project. This allowed me to keep my service intact (i.e. still serving up JSON instead of JSONP). The only drawback is that the client needs to use the easyXDM JavaScript
library to make calls to the web service. However, the calls are very similar to jQuery's implementation of web service calls.

Right now it is unfortunate we don't expose the request/response on the formatter though we are going to fix that. For now there is an extension method you can access to get to the request message. You will need to use the static operation context...

OperationContext.Current.RequestContext.RequestMessage.ToHttpRequestMessage() should return you the request.

In the future drops we are planning to move request to be a parameter.

I'm hoping you can provide me some guidance or provide an example. Not out of laziness but I've been trying for a while and still can't figure it out, plus I'm not the brightest guy.
How can I get access to the request or the Query within the following override in a MediaTypeFormatter:

Thanks, I included: "using Microsoft.ApplicationServer.Http.Channels;" and I do see the method now.
Next I'll have to figure out why OperationContext.Current is null. But I'll experiment for a while before I dirty up your discussions.

Im trying to figure out how to get JSONP working using Web API. I followed Alex's post: http://blog.alexonasp.net/post/2011/07/26/Look-Ma-I-can-handle-JSONP-%28aka-Cross-Domain-JSON%29-with-WCF-Web-API-and-jQuery!.aspx

and I implemented the JsonpResponseHandler
as per the example. What I dont understand is where does this HttpHostConfiguration class come from? and how am I suppose to hook the handler from my Global.asax.

I saw that HttpHostConfiguration was also mentioned on the MIX session with all of its fluent glory but i cant find any mention of it in the classes that make up Web API library... So im guessing the HttpConfiguration is the class to use instead?

Looks like im missing something but i dont know what. Im using the latest version downloaded as a nuget package (preview 5) and i got the contrib project as well.