rest

Need a better language/frameworks doing RESTful webservices

I'm developing out replacements for our company's web service stack. The current stack was developed using SOAP and had some REST endpoints manually hacked in. It's a maintenance nightmare. I can use any language, tech, and framework as long as it it fits the goal. Requirements are: easy for serving up RESTful services uses an ...

WCF Syndication Service not found in II6

I have a WCF Syndication Service that works fine when run locally on Windows Vista or Windows 7, but when it is deployed to a Windows 2003 Server, it gets a 404 (Resource cannot be found). Non-REST WCF services work fine on this machine, so I know that .Net 3.5 is registered correctly in IIS. Any suggestions? ...

RESTful PUT and DELETE and firewalls

In the classic "RESTful Web Services" book (O'Reilly, ISBN 978-0-596-52926-0) it says on page 251 "Some firewalls block HTTP PUT and DELETE but not POST." Is this still true? If it's true I have to allow overloaded POST to substitute for DELETE. ...

Is it ok by REST to return content after POST?

I am using RESTlet and I have created a resource. I handle POST by overriding acceptRepresentation method. Client should send me some data, then I store it to DB, set response to 201 (SUCCESS_CREATED) and I need to return some data to client, but return type of acceptRepresentation is void. In my case I need to return some identificato...

How to use OpenID in RESTful API?

I'm building Pylons-based web application with RESTful API, which currently lacks any authentication. So I'm going to implement that and in order to avoid all the trouble and caution with storing user passwords, I'd like to use OpenID for authentication. What would be the best way to do this? Are these two things compatible? Are there ex...

How do I send a PUT/DELETE request in HTML?

Hi, I'm messing around with REST in PHP and I understand that I can capture the request method vi a $_SERVER['REQUEST_METHOD']. But how do I trigger PUT/DELETE requests in PHP without the use of cURL? I want to use the features of a default PHP installation to do this. I can't imagine changing the method attribute of the form tag to spec...

Rails, OAuth, and CSRF protection

I am using REST and OAuth to talk to a Rails app (from an iPhone app, but that should not be relevant). However, I am running into some issues with Rails' CSRF protection (via protects_from_forgery). I understand that CSRF protection only kicks in for regular form submissions (i.e. Content-Type=application/x-www-form-urlencoded), so I w...

Consume RESt API from .NET

Hi All, I am trying to consume REST API from my .NET Application. This API's are all written in JAVA. I am asked to pass the authentication credentials vis HTTP headers. How can I pass these authentication credentials like 'DATE', 'AUTHORIZATION' and 'Accept' via HTTP headers. Which class in .NET can I use to accomplish this task. Can...

Restlet ClientResource Post Chunked Encoding - WCF Unsuported

Hello All, I'm developing a product that will use extensively of Restlet for consume WCF Rest Services. I had created a method to post a XML of a class containing 2 attributes. Restlet post my xml with Transfer-Encoding: chunked, and my WCF service, can't to interpret posted content, unfortunately WCF continues can't to deserialize my ...

WCF + REST: Where is the request data?

I'm currently developing a WCF RESTful service. Within the validation of the POST data, I am throwing exceptions if the request XML does not conform to our business rules. The goal is to send an e-mail to the appropriate staff if a request comes in that considered invalid. But, along with the incoming request headers, method and URI, ...

RESTful services and

Hello. I have just read Resource-Oriented Architecture: The Rest of REST. The reasoning behind content negotiation is compelling, but there's one thing I sometimes need, which seems to be impossible in this schema. Let assume I've got a web service to deliver some graphs. I want users to choose between different styles of these graphs ...

Objective reasons for using Python or Ruby for a new REST Web API

So this thread is definitely NOT a thread for why Python is better than Ruby or the inverse. Instead, this thread is for objective criticism on why you would pick one over the other to write a RESTful web API that's going to be used by many different clients, (mobile, web browsers, tablets etc). Again, don't compare Ruby on Rails vs Dja...

How rails issue put method on update ?

On edit.html.erb file, scaffold created, I don't see any code specified PUT method. How come the post form call update action with PUT method. ...

Java RESTful class/library support without annotations?

Hi there, I am looking for a simple Java library (having a friendly license; Apache2, MIT, BSD) that I could use for parsing http RESTful requests. I will be taking care of representing the resources but I don't want to reinvent the mapping and the URI transformations, if possible?! I need a simple support for parsing routes, such as: ...

Real Time Twitter Status

I'm looking to write a Twitter application, and I need to get real time (or as close as possible) updates. The official REST API only allows 100 calls/hour or so, and if I want to get status from more that just a couple users it's going to add up pretty fast. Besides, requesting every 30 seconds seems like an overall pretty inefficient a...

How to dynamically create WAP pages by using RESTful Service?

Hi, I am creating a RESTful service which has to create WAP pages dynamically. I am wondering if it is possible to create a generic "wml" object with members representing wap elements (for example card, option...) so the service could simply return a wap page, for example: <?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WM...

Doing a HTTP PUT from a browser

I would like to know what the definitive (?) answer is for how to do things other then POST/GET from a browser - either a HTML form or Ajax, as I hear mixed reports on what browsers allow what (specifically on the ajax side). When building a back end in RESTful style it is nice to use proper verbs like PUT, HEAD, OPTIONS etc... in rail...

PHP using CURL: is there a way to emulate a cookie instead of saving it to a file?

I access a REST api service that utilizes a variable called session_id. The API calls for this to be stored in a cookie and I accomplish this as follows: $ch = curl_init(); // initialize curl handle curl_setopt($ch, CURLOPT_URL, $url); //set target URL curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);// allow redirects...

Is there a way to redirect to a specific page after a RESTful delete in Rails?

Lets say I have a message resource. Somewhere in the html I have: <%= link_to("Delete", message, :title => 'Delete', :confirm => 'Are you sure?', :method => :delete )%> Right after I delete it, it redirects me to the page where it lists all the messages. Is there a way to redirect to a page that I specify after the deletion? ...

WCF - using multiple bindings including REST (WebHttpBinding) on one service library?

Hi, I want to expose my Service Layer (which is currently written as standard class library with POCOs) for external as well as internal consumption. External clients will use it over REST style APIs while internally my MVC app will use it over net.tcp binding for better performance. How do I do this elegantly? I can write 2 wrappers o...