rest

Retrieving XML results of a POST command

As part of my GWT application I have a POST method that accepts a file (so I need to use form submission) and returns an updated list of elements as xml. I use the GWT formPanel to do this. The formpanel redirects the results of the post into a separate iframe. Using the dom inspector I can see that the results are actually there. Unfort...

OAuth Consumer request for token from ServiceProvider returns InternalServerError

I'm playing around with DevDefined.OAuth - an OAuth consumer and provider implementation for .Net http://code.google.com/p/devdefined-tools/wiki/OAuth and on launching the ExampleConsumerSite project after configuring the service endpoints on my IIS 7 web server, I'm receiving the following error: Description: An unhandled exception occ...

ASP.NET MVC + REST SDK + Atom Feeds + Outlook 2007 formatting

I used the ASP.NET MVC REST SDK for building atom feedS for our exception logging dashboard and it worked perfect. When creating the syndication content, I used CreateHTMLContent and added a PRE tag around my HTML content string. Now it shows in a nice formatted way on internet explorer. But when reading the feed through outlook 2007, ...

Web server that does not allow PUT and DELETE?

I am trying to implement a REST protocol and have realized in trying to debug that my webserver is disallowing the PUT request. I have tested and confirmed this further by running: curl -X PUT http://www.mywebserver.com/testpage which for my web server gives back a 403 - Forbidden error The same happens for DELETE, where as for POST ...

WCF REST Compression

I have a REST service that returns a large chunk of XML, about 150k worth. e.g. http://xmlservice.com/services/RestService.svc/GetLargeXML Therefore I want to compress the response from the server, as GZIP should reduce this to something much smaller. Having searched everywhere I cannot for the life of me find an example of how to ...

REST: How to Create a Resource That Depends on Three or More Resources of Different Types?

A RESTful, hypertext-driven system needs to enable clients to create a new resource that depends on three or more resources of different types. What's the best method to expose this capability? As an example, let's say I run an online store. The server knows about four resources: Order: The group of products to be shipped. [has ...

Should Links ever have statefull side effects

Hi all, I have made life difficult for the HTML / CSS developers by making any interaction that has a side effect into a button and NOT a hyperlink. For example I changed the "Clear Basket" in a shopping site from a link to a button. On the premise that any action that has a side effect should be a button not a hyperlink. (even tho a ...

Access to Facebook API using REST and HttpClient

Hello there, I am going to use RESTful Web Services and HttpClient to access Facebook API REST Server. Am somewhat of a newbie to REST and Facebook APIs... Question(s): Verification / Authorization (1) If I have a session key sent by a client app, how do I verify and authenticate that the user exists and then query for his / her fri...

Is there a Google AppEngine compatible FW for building django REST API's (like piston etc.) ?

I'm trying to build a REST API on top of django running on Google AppEngine. Is there a FW with similar offering to piston (or a piston fork?) that can run on AppEngine models rather than on django's models? ...

Web service call duration

My team has some data stored in a database which other teams in our company are interested in getting, and we're planning to build some web services, so that they don't have direct access to our database. We aren't running very complex queries (consider it instant, once we're interested in the overhead), and we're wondering how long a w...

Rest-ful Basic Authentication with ASP.NET MVC

Anyone know how this works, I'm using the .net membership provider and just want to pull an xml list. I'm also using the .net mvc sdk. So here's the problem when I add the [WebApiEnabled] at the top of my controller I can successfully pull xml/json. But when I add [Authenticate] to the top of my controller I cannot login. As an exampl...

Create a new reservation via a restful url?

Hi All, I have a html table which consists of columns for days, and rows for hours of the day. I intend this to be a UI widget, similar to the commonly seen calendar date picker. Clicking on a particular cell of the table would select that date and time for creating a new reservation. I was considering using a url to represent this se...

RESTful Authorization

I'm building a community-based site in Rails for the members of a real-world organization. I'm trying to adhere to the best practices of RESTful design, and most of it is more or less by-the-book. The issue that's making my brain run in neat RESTful circles is that of authorization. Authentication is an easy, long-solved problem with wid...

Facebook: Getting Incorrect Signature (104) when Getting Session Key

Hello there, I am trying to use the HttpClient library (in order to call the Facebook API's REST end points) to obtain a session key and verify user... My code is here: RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = { "classpath*:**/*applicationContext-test.xml" }) public class FacebookUserTest { final St...

Filtering data - REST <RSS>

I wonder if anyone can help me filter this data in some way? Here is a link to the data: http://tinyurl.com/mykv85 I'd like to create a web page to display this data but also filter it in some way. ...

wcf rest starter kit preview 2 error: requires VS 2008 SP1

Hi, I'm trying to install the WCF REST Starter Kit Preview 2, but that fails with the message that I need Visual Studio 2008 SP1, which I actually do have installed: Microsoft Visual Studio 2008 Version 9.0.21022.8 RTM Microsoft .NET Framework Version 3.5 SP1 Does anybody know what the problem is? Thanks, regards, Miel. ...

webHttpBinding using webMessageEncoding: how to configure?

I have a REST WCF service. Its using a webHttpBinding and the configuration looks like this: <service name="IndexingService.RestService" behaviorConfiguration="IndexingService.Service1Behavior"> <endpoint address="" binding="webHttpBinding" bindingConfiguration="CustomMapper" contract="IndexingService.IIndexi...

Rails - Redundant RESTFUL Actions for map.resources? (new, create)

Hello there, I was wondering why when you create restful routes in rails with map.resources it generates actions for new, create, edit, update? Is there anything wrong in declaring just one action for create and update and do something like this? def create unless post? @user = User.new else redirect_to :action => 'index' ...

Questions on proper REST design

I'm designing a REST web-service and have questions on best/proper design. A search method should be POST, since identical requests don't have to return the same data, right? Also, is it better to do /search/term or /search and have term as post-var? Also, what if a resource can be updated at any time, would the method to return it be...

Transaction across WCF and REST

We are having a business logic which involves call to services. The application is built in c#.net and the business logic needs to make a call to the fallowing 1)Internal database call to update few fields 2)call to REST WCF service to store a document 3)call to web service to store data in queue I want the above 3 steps to be Transa...