You are looking at a partial list of posts.
Below is a list of entries related to:
rest.
My site contains more than just the information below and I'd encourage you to visit the
home page to view
current information as well as other items/categories that might be of interest.
There are 8 entries for the tag
rest
I ran into an interesting situation last week…the desire to access some of my Amazon S3 services from within a Silverlight application.
Amazon Simple Storage Solution (S3) is a pay service provided Amazon for object storage ‘in the cloud.’ Although there is no UI tool provided by Amazon to navigate your account in S3, a SOAP and REST API are available for developers to integrate S3 information into their applications or other uses. You can view more information about Amazon S3 on their site.
What is S3?
Since S3 is a pretty flexible service, it can be used for many different things including...
Are you poking around with the latest ASP.NET MVC (Model-View-Controller) bits? If so, hopefully you are already aware of the resources available to you and the fact that Phil Haack is one of the program manager’s leading those efforts, and Scott Hanselman has been providing the community with some resources to jump start your learning. Well, another member has just joined the ranks on the team I work for. Stephen Walther, pictured here in his best book-cover pose ;-), has joined the team. He actually joined earlier this month, but I’m just now getting around to welcoming him to...
We were all jumping for joy when Silverlight 2 beta 1 was released and the ability to connect to services was more readily/easily available to us. For discoverable services that provided a WSDL we were quickly able to implement them using the Add Service Reference capability in Visual Studio 2008. Beta 2 brings a few changes to the world of services that you should know about. I’ll do my best to recap some of them here. Generating a WCF Service In beta 1 when we created a WCF service for use in Silverlight, we used the “WCF Service” template...
Taking another cue from some great stuff Joel is doing, I liked his implementation of the ‘Leopard Screen Saver’ but wanted to make it more ‘real’ for me. So I wired it up to my Flickr account. Result here (using Silverlight Streaming):
I only had to change a few things.
First, in the Page_Loaded event, I removed the timer start function. This was because with interacting with Flickr it was going to be async. I didn’t want the timer to start until I knew the image collection was built.
My BuildCollection function now looks like this:
private void BuildCollection()
{
// get...
Wait! Don’t throw out your JSON services!
The Situation
You’ve made an investment in exposing some services for client script consumption. Most likely if you did it in the past 2 years, that involved exposing your data as JSON formatted objects.
What is JSON?
It is a text-based, human-readable format for representing simple data structures and associative arrays (called objects)
Perhaps a search service returns a list of people formatted using your custom “Person” object and you’ve been using this in your AJAX applications for a while now. Maybe your JSON data looks something like this:
[{"City":"Queen Creek","FirstName":"Tim","LastName":"Heuer",
"Website":"http:\/\/timheuer.com\/blog\/"},
{"City":"Portland","FirstName":"Scott","LastName":"Hanselman",
"Website":"http:\/\/hanselman.com\/blog\/"},
{"City":"Redmond","FirstName":"Scott","LastName":"Guthrie",
"Website":"http:\/\/weblogs.asp.net\/scottgu"},
{"City":"New Hampshire","FirstName":"Joe","LastName":"Stagner",
"Website":"http:\/\/joestagner.net"},
{"City":"Boston","FirstName":"Jesse","LastName":"Liberty",
"Website":"http:\/\/silverlight.net\/blogs\/jesseliberty"}]
In a previous post, I wrote about some samples of calling various types of services from Silverlight 2. In the code, I was using constructors in my ASMX and WCF services with specifying a binding type and endpoint address.
It was called out to me that in other demonstrations, people did not use this construct. While the method I demonstrated works (explicitly specifying the binding and endpoint), in some cases it may not be necessary. One such case would be if you only have one endpoint and it is basicHttpBinding.
The error in my code/instructions was about changing the binding information in...
UPDATE: Source code posted here.
Now that Silverlight 2 is out to the masses (even in beta form), there are likely a lot of developers looking to wire-up web services with their applications in .NET rather than the Silverlight 1.0 method of Javascript. I thought I'd give you some quick examples of how to do this using some different methods: ASP.NET Web Services (ASMX), Windows Communication Foundation (WCF), REST service, and talk about cross-domain calls. These are meant to be examples using very much 'hello world' style services, but demonstrating at least how to execute the call.
If you are an ASP.NET...
my colleague kirk has been writing some articles for the AOL developer network. his first articles are up and he talks about integrating with the truveo, aol's developer api for video. kirk does some integration with truveo's ajax api and displays information back in silverlight.
the first two parts are up, and the third is underway, planning on using wcf and managed code with REST services.
go check it out on kirk's site.
tags: aol , truveo , silverlight , kirk evans , ajax , wcf , rest , api