Archives for the ‘Web Services’ Category

A pattern for Silverlight’s asynchronous operations

Silverlight can only invoke web operations asynchronously. Normally this would have led to a mess of logic. However, with anonymous methods, the problem can be managed. People who are familiar to Ruby blocks would see the similarity.
In the VB.net example below, I have a function AllocateSerialNumber which (eventually) returns a string.

Imports System.ServiceModel.DomainServices.Client

Dim myDomainContext As [...]

ASP.net 4.0 Silverlight Hosting Tweaks

Having strange 404 Not Found problems with your Silverlight deployment when it all works fine in your development environment?

This is what my hosting provider had to change to support WCF Silverlight deployments. Hope it helps you too.

Troubleshooting Silverlight 4.0 and WCF Deployment problems

There’s plenty to read on the internet how to manually troubleshoot deployment issues.
However, none try to automate this. Here’s a little troubleshooting script. It worked for me (up to a point). Feel free to extend this if you encounter further issues.
(Update: also have a look at WCF issues that only my hoster could address)

<%@ [...]

More on Verbs vs Nouns

Not my two-cents, actually, in response to Pat Hellands Every Noun can be Verbed
[Objects|Closures] are just a poor man’s [closures|objects] via via

Atom WSSE Profile

It’s been a few years since Mark Pilgrim wrote up the WSSE authentication on XML.com. There has been little exposition of it, bar Ezra from MovableType who explained that the OASIS scheme requires passwords to be stored in clear text on the server. The WSSE scheme doesn’t really define any extensions which specify that a [...]

Uh oh Status Code Killers

This couldn’t be REST could it?
BBC API aka FLICKR API

<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="fail">
<err code="[error-code]" msg="[error-message]" />
</rsp>

via Second p0st
I hope old Auntie doesn’t start doing that.

Are 4 Verbs Enough

Question for Mark Baker:
Suppose I have a resource which is an ordered list of other resources. What’s a suitable protocol to swap two elements around?
What happens if the list is 1,500 elements?
Can we do this with GET, PUT, POST or DELETE?
Thanks!
Update for other readers: Thanks to Mark, I learnt something new today. Stefan [...]

Transporting Data in Web Services

Jim Waldo on language independent means of transporting data:
First of all, it means that you need to have a language-independent mechanism for passing data from one place to another. But there is no more a language-independent way of expressing data than there is a language-independent way of expressing objects. If I tell you that a [...]