Contents tagged with WCF
-
Cool LINQ over JSON..........In MonoDroid no less
I was working on some json/rest web services written in windows communication foundation (wcf). I wanted to use the System.Json namespace to do some of this. I made an http web request asynchronously. In my call back method, I have following code doing a linq query over this json result.
-
Wrapping your WCF Responses
I've got a WCF web service that exposes its data over REST. I'm calling it from iPhone and Android. The method signature is something like:
-
Calling a REST Based JSON Endpoint with HTTP POST and WCF
Note: I always forget this stuff, so I'm putting it my blog to help me remember it.
-
Twitter API - Submit a post in C#
I used C# and WCF, but I could have just as easily used an ASMX web service. This code is fairly simple. No I didn't write it initially. I found it online (Hey, we all have to start somewhere). I massaged it a little to fit my needs and boom, here it is. I have decided to leave the comments for the original code sample in the post. Note: This code will not run as listed. You have to have a password. This code has that as a shared variable, but I'm not showing that to you, seriously. I hope that this is of some help to you.
-
Twitter API - Sending a Direct Message in C#
I tried writing some code to send a direct message using the Twitter API. It was a FAIL. I did some searching in google, and found this method below listed in a google group. I didn't write it, but it works, so enjoy. I plugged the method into my WCF Service and it just worked.
-
Twitter API - Get a list of your friends in C#
I needed to call the Twitter API and get a list of friends. I thought I could do something similar to getting a list of posts, but alas, I had some stupid error in my linq to xml code. I futzed around with it for days to no avail. Finally, I decided it was just easier to iterate through the XML using an XmlNode and fill my objects that way. Hey, it just worked. Like my previous example, this code uses C# and is in a WCF Service. Note: As displayed, the code doesn't work, you will have to supply a password.
-
Calling the Twitter API in C#
I've been working on this application to send out tweets at a particular time. One thing thing I want to do is be able to look at the logged in user's timeline. I've been playing with the ASP.NET 4.0 AJAX Previews, so I thought I would marry the two. As a result, I wrote the WCF code below in C#. Note that the password is hidden, so the code won't work until you add that in. Basically, I make a request to get the friends timeline. This gives me the most recent 20 posts by default. I store the result in an XmlDocument. I need to get that data out as a complex object of type UserStatusSvc as I am returning an array of that type. I used Linq to Xml for that.
-
ASP.NET Podcast Show #118 - Paul on Peer-To-Peer with Windows Communication Foundation
-
ASP.NET Podcast Show #100 - Aaron on WCF file streaming