Tag: web-services
All the articles with the tag "web-services".
Using REST in NAnt with a custom HTTP Task
Published:3 min readThis article describes how to make HTTP requests to a REST web service from a NAnt script using a custom task. The HttpClient class from the WCF REST Starter Kit is used, and the source code is available on GitHub. The assembly has been merged with the Microsoft.Http.dll dependency making deployment easier.
Bugs in the bit.ly REST API
Published:3 min readThis article discusses bugs found in bit.ly's REST API which prevent users from expanding URLs from its shortened representation by returning XML that includes the hash for the URL as one of the elements, which cannot start with a numeric or punctuation character. It also covers issues with serialization for .NET consumers and how other services in the bit.ly REST API do not suffer the same problem.
Introduction to the HttpClient
Published:7 min readThe HttpClient class simplifies interaction with REST web services by providing constructors, a Send method, extension methods, and methods to receive content, use headers, and send requests asynchronously.