title: Example of JSON-P with WCF?
body: <p>I'm trying to make a WCF service that will work with JSON-P (long-story short, we have to call the web-service cross-domain and receive a call-back, so I need it to work with JSON-P).</p>
  
  <p>I found a code-sample on MSDN (<a href="http://msdn.microsoft.com/en-us/library/cc716898.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/cc716898.aspx</a>). If I extract the ZIP file and navigate to Samples\WCFWFCardSpace\WCF\Extensibility\Ajax\JSONP\CS, I get a project in which certain bindings and extensions have been created, which would give WCF the capability of spitting out a call to a JS function after it returns the JSON.</p>
  
  <p>Unfortunately, when I try to copy this code and implement it in my project it doesn't work.</p>
  
  <p>I get the following error:</p>
  
  <p>Configuration binding extension 'system.serviceModel/bindings/jsonpBinding' could not be found. Verify that this binding extension is properly registered in system.serviceModel/extensions/bindingExtensions and that it is spelled correctly.</p>
  
  <p>It's as if the developers at Microsoft left out some vital piece of code that's required for this to work, and I'm not sure what they left out or what it's meant to do.</p>
  
  <p>Has anyone had experience using WCF with JSON-P?</p>
  
  <p>If there's a way to get this sample project working, I'm all-ears.</p>
  
  <p>If there's an alternative way to do cross-domain web-service calls from Javascript to WCF, I'm also interested.</p>