rest

RESTful framework alternatives to WCF

Looking for alternatives to the WCF REST start kit, ideally OSS frameworks. Anyone got a list? Cheers Ollie ...

REST user authentication

OK... the basic idea is to have SERVER and CLIENT physically separated (two systems). My idea is to build a stand-alone web service (REST, XML, API-KEY) that will provide Authentication: User login, logout Data: Get list of products Then I will create clients in different languages (Flash, PHP, JavaScript). Data will be served only ...

Modifying returned MIME type of C# WebMethod

I have a web service implemented in VS2005/C#. The ASMX page has a few web methods that are pure SOAP, and I want to add an additional method that has a RESTful interface. I want one of the methods to simply return a JPG image (image/jpeg), and not an XML response. Now, I know that ASP.Net automatically creates a REST interface for web ...

How do i call Rest Webserivce with a post method and send xml data in C#

Hi everyone, What i am trying to do here is make post request to Rest webserivce with xml data. this is what i have right now but i am not sure how to pass my xml data XElement xml = new XElement("MatchedOptions", from m in _matchedOptionsList select new XElement("Listing", ...

Opinions Needed on the Atomicity of a RESTful PUT

My colleagues and I are implementing a number of RESTful HTTP services, and we're trying to make sure we are a) following the spec, and b) doing the "right" thing where the spec is short of detail. Here is a particular situation that we have come to and are looking for opinions from the community on: Suppose you have a resource /People...

Getting REST-ful URIs in Joomla?

Using my own Joomla 1.5 component, module, or plugin, how would I turn a request for a REST URL like foo.com/api/... into relevant echo()s on the page? I'm looking for a "hello, world"-level example, if possible. For example, foo.com/api/baskets/10/fruits/list.json might result in something like the following text on the page: -- resou...

Double request while making POX REST call using WCF with WebHttpBinding set to Basic Authentication

Having an issue while making POX REST call using WCF with WebHttpBinding set to Basic Authentication (HttpClientCredentialType.Basic) Instead of one call from the client with “Authorization: Basic” specified in HTTP Header, two calls are made. First call without authentication at all to which service responses with 401 Unauthorized erro...

Implementing a REST api which switches between XML and JSON in Servlets

Twitter's REST api allows you to append a JSON or XML at the end of the URI. e.g. http://twitter.com/statuses/public_timeline.json http://twitter.com/statuses/public_timeline.xml In the context of servlet, statuses will be the webapp context name & public_timeline.json is mapped to some servlet. I want to maintain one servlet to do ...

Non-blocking HTTP requests in object-oriented PHP?

I have a PHP client application that is interfacing with a RESTful server. Each PHP Goat instance on the client needs to initialize itself based on information in a /goat request on the server (e.g. /goat/35, /goat/36, etc.). It does this by sending an HTTP request to its corresponding URL via cURL. Working with 30+ goat objects per page...

How to handle or prevent "Only post requests are allowed" error in Ruby on Rails?

I have a [somewhat] restful route setup with: map.resources :forgotten_passwords, :as => 'forgotten-passwords', :except => [:destroy, :show, :delete, :index] forgotten_passwords POST /forgotten-passwords(.:format) {:action=>"create", :controller=>"forgotten_passwords"} new_forgotten_passwo...

To consume a RESTful web service in C#, should I use HttpWebRequest?

How do I consume a RESTful web service in C# code? NOTE: by RESTful, I mean non-SOAP. For example, in the flickr API you can call their web service as follows to return JSON data: http://api.flickr.com/services/feeds/photos_public.gne?tags=cats&tagmode=any&format=json Do I simply use HttpWebRequest? What if I'm using a web se...

iPhone, special characters in JSON Response

Writing an iphone app, and I'm getting my data from a REST API that returns JSON. My problem is, some of the data has special characters embedded and Im getting errors. Example: MartÌn Petite-RiviËre-Saint-FranÁois Here is my current code: NSString *jsonString = [[NSString alloc] initWithData:receivedData...

A problem of webservice calling in rails

In rails, as the "open" method of 'rest-open-uri' package can help call restful webservice. In a project, I can use that method to call restful webservice of other projects. However, when I use "open" method to call a restful webservice of the same project, it always returns the "execution expired" error as follows. Who can tell me why, ...

Alternatives to YQL

This is a multi-part question. I just watched a very interesting presentation on YQL by the lead developer (a graduate of my MS program). While it was very compelling, and I am looking forward to trying it out, I am wondering if anyone knows of alternative frameworks for querying multiple web service APIs to make them appear seamless, th...

Form based login while also applying REST principles

I am a Spring/JavaEE web programmer and am starting to investigate the principles of REST for future web applications, but I can't figure out how to do usable logins. For a Web API it makes sense, but what about end user facing web applications? I have looked into the HTTP Basic/Digest Authentication but that only produces an ugly dialog...

Nested Resource at Root Level of Path

I'm trying to create a nested resource with a url scheme along the lines of: "http://example.com/username/...". What I currently have is this: ActionController::Routing::Routes.draw do |map| map.home '/', :controller => 'home' map.resource :session map.resources :users, :has_many => :nodes #map.user '/:id', :co...

What ist a RESTful-resource in the context of large data sets, i.E. weather data?

So I am working on a webservice to access our weather forecast data (10000 locations, 40 parameters each, hourly values for the next 14 days = about 130 million values). So I read all about RESTful services and its ideology. So I understand that an URL is adressing a ressource. But what is a ressource in my case? The common use case ...

RESTful Media Sharing API

Does anyone know of any good free media sharing sites like twitpic.com, but not for just twitter? It needs to have a good RESTful API. Preferably hosts video and audio as well as images. Kinda like mobypicture.com, but with a RESTful API. ...

SMS REST Service?

Hi Everyone, I've got an application that does some work then hits an URI callback once the work is done. For testing, I'd like to send an SMS to my cellphone. Something like http://www.jonskeetistheman.com/SMSSend.aspx?phone=4255555555&msg=supdawg Are there any REST based SMS services (free) that ya'll can recommend? ...

WCF Xml Serialization and AutoImplemented Properties

I'm experimenting with WCF RESTful web services and I'm having a problem with Auto-Implemented properties. I have a class called DeviceDescriptor, defined as follows: public class DeviceDescriptor { public string DeviceId { get; set; } public string DisplayName { get; set; } } I have a RESTful WCF service that is supposed to ...