Browse by Tags
All Tags »
WCF Data Services »
OData (
RSS)
Why My WCF Data Service isn’t Returning JSON Format? Lately, I had the need to use WCF Data Services in a project. It has been a while since I used and wrote about WCF Data Services and a lot was changed in the framework. The scenario I needed to implement was calling a data service using jQuery. So I wrote the relevant service and used the code I wrote a few years ago and nothing happened… I got a HTTP error – HTTP Error 415 Unsupported media type . Since I know that WCF Data Services support JSON...
WCF Data Services Processing Pipeline First I must confess. Even tough I like OData and WCF Data Services, in the last couple of months I didn’t have the chance to work or use them. This is why when .NET 4 was shipped I haven’t noticed a new and interesting extension point in the framework – the processing pipeline . In the last MIX11 I got a little introduction to that extension point in Mike Flasko’s session . In this post I’ll explain what is the WCF Data Services' server side processing pipeline...
Making a JSONP Call to a WCF Data Service using datajs During MIX11 I attended a very interesting session about datajs which was presented by Asad Khan and Marcelo Lopez Ruiz. As I promised in my previous post , in this post I’ll show you how to make a JSONP call to a WCF Data Service using datajs library. A Little About datajs datajs is a very promising JavaScript library which is currently being built by Microsoft as an open source in CodePlex. The library as described in its CodePlex site is ...
Combining WCF Data Services, JSONP and jQuery During Mike Flasko’s session at MIX11, he showed how to create a JSONP aware WCF Data Service with a JSONPSupportBehavior attribute that is available for download from MSDN code gallery (and is supposed to be a part of Microsoft.Data.Services.Extensions namespace). In this post I’ll show a simple example that uses the attribute and jQuery in order to make a JSONP cross domain call for a WCF Data Service. Setting up the Environment First I started by creating...
Configuring WCF Data Services using Lambda Expressions One of the things that I avoid when I’m writing code is the use “magic strings”. Hardcoded strings are a code smell and should be rarely used. When using WCF Data Service configuration object you’ll have to pass the entity set’s string name to the configuration methods which as I wrote I would like to avoid. This is why in today’s post I’m going to extend the DataServiceConfiguration object to support lambda expressions instead of string parameters...
My SDP Lecturer Interview Last week Sela conducted a live broadcast with trailers to the sessions that will be presented on stage in the SDP conference. The broadcast was recorded if you want to see me “making a fool” of myself in the live broadcast you can watch the recording of my interview here ( in Hebrew ). I’m reminding that I’m going to have two sessions: Creating OData Services with WCF Data Services Data is a first-class element of every application. The Open Data Protocol (OData) applies...
OData Session Slide Deck and Demos Yesterday’s evening I delivered an OData session at the Israeli Web Developer Community ( WDC ) user group at Microsoft Ra’anana. The session included the following agenda: The OData need. What is OData ? Creating and consuming OData feeds. I want to thank all the attendees who came to the session. I really enjoyed to deliver the content about OData and the audience was very cooperative with a lot of good questions that helped to highlight many crucial...
OData Session is Occurring Today Today at 17:30 I’m delivering an OData session at Microsoft office in Ra’anana. Come and hear about the Open Data Protocol, a new protocol for exposing and consuming data on the web. The OData ecosystem is a growing community of data producers and consumers using the Open Data Protocol to exchange data. The Open Data Protocol breaks down data silos and increases the shared value of data and its associated business logic through the Web by enabling the exposure of...
OData Session is Coming At last my OData session details were published today. The OData ecosystem is a growing community of data producers and consumers using the Open Data Protocol to exchange data. The Open Data Protocol breaks down data silos and increases the shared value of data and its associated business logic through the Web by enabling the exposure of any data source as a Web-friendly data feed. The easiest way to become an OData producer in the .Net world is by using WCF Data Services...
OData Explorer One nice tool to use with OData is the OData Explorer . The OData Explorer is a tool that helps to explore OData feeds in a visual way and not by exploring the Atom/JSON responses. You can download the tool from here . Another way to use the tool is by going to the following link: http://Silverlight.net/ODataExplorer . OData Explorer Requirements The tool is a Silverlight 4 project. In order to use it you’ll have to answer these requirements: Visual Studio 2010 Silverlight 4 Developer...
Loading WCF Data Services Ajax Script Library Since I’ve given sessions about WCF Data Services in the past (when they were called ADO.NET Data Services ) I wanted to reuse some of the Ajax examples I showed for my coming OData session. One of the things that have been changed lately were the scripts to use when you want to make Ajax calls to your Data Service . So I downloaded the new scripts and saw that the names of the objects to use have been changed a little but their functionality remained...
Calling a WCF Data Service From jQuery I’m working on a lecture about OData which I’ll will present next month (stay tuned for more details in the near future). One of the things that I want to show is how easy and simple it is to consume a WCF Data Service ( OData feed) with the jQuery library. In the post I’ll show you exactly how to do that. jQuery’s getJSON Method When you want to load JSON data from the server using a GET HTTP request in jQuery you will probably use the getJSON method. That...
Consuming OData Feed using Microsoft PowerPivot PowerPivot is a data analysis add-in for excel that brings to it computational power. It also helps “to create compelling self-service BI solutions, facilitates sharing and collaboration on user-generated BI solutions” (taken from the PowerPivot site). This post will help you to understand how to consume OData feed from PowerPivot in order to use the data the OData exposes. The OData Feed OData exposed feeds can be found in the http://www.odata.org...
Using Paging in WCF Data Services One of the mechanisms which were provided in WCF Data Services from the start was client side paging. In the new release of WCF Data Services we also get a server side paging and this will be addressed in this post. WCF Data Services Client Side Paging From the early days of WCF Data Services we could achieve paging on the client side using the $top and $skip query parameters. For example the following URI for a data service will bring the 11-20 courses which were...
OData Visualizer Extension Yesterday I wrote about VS2010 extension manager . One of the great extensions that you can download and use is the OData Visualizer . The OData Visualizer helps us to get a visual graph of the OData Protocol ’s types, properties, associations, and other aspects of the EDM which you get from an OData metadata endpoint. Installing OData Visualizer Installing the OData Visualizer is very easy. Go to your Extension Manager and search for OData Visualizer in the online gallery...