rest

Ruby framework to write a API in?

Hi I'm looking to write a multiplatorm tasks application for technical people. I want to handle as many platforms as I can (web, shell, desktop) and therefore I have decided to begin with a server/API. I want to write it in Ruby, however i think that Rails is a bit too heavy for this, even though it would do the job. Sinatra also doesn'...

ArrayOf when using List<T> with a WCF Rest Service

Hello, I am trying to create a REST web service using .NET 4.0 and WCF. My REST service is returning a List which then gets serialized into XML. The problem I am having is that the XML being returned starts with ArrayOf, which I don't like. In other words, right now the XML looks like this: <ArrayOfAchievement> <Achievement> ...

Whats the best way to offer SOAP/XML + REST/JSON?

I'm creating a general purpose web service that is likely to have a number of different clients, some of which I cannot anticipate at this time. I already have a nice Java Services API and am looking to provide a web services facade on top of that. There are great arguments on both sides of the SOAP vs REST debate and it leaves me wond...

REST Architecture - Resources and Methods

In REST based architectures what's the difference between a resource and a method. Is there one? ...

What do you guys think of RestEASY?

So I wrote a sample REST resource that works like a charm in Jersey/Tomcat, but when I take it to RestEASY/Tomcat it blows. I mean really? what happened to working out of the box. Anyway a little frustrated. I get this error when trying to access the resource(http://localhost:7070/mg/mytest) "content-type was null and expecting to extra...

A RESTfull search service Question

Hi I have a SQL Server (2008) database that contains address details that i want to make available to search as a rest service. All that needs to be available is the ability to pass an address or part of an address and the service will return the potential candidates, much like yahoo or googles rest services. My question is, from a hi...

make the service return large amount of data

Hi, What's the limit of data that I can return by WCF service? I tried to play around with maxReceivedMessageSize and other parameters but still dont know what exactly the limit? Even if I get rid of "size quota for incoming messages" issue I get "an existing connection was forcibly closed by the remote host". I know that "pagging" is ...

Connect to remote MongoDB instance from ASP.NET

I'm having some trouble nutting out why I'm unable to connect to a new database I've created at MongoHQ. I want to include the correct connection string in my Web.config file and have my Mongo object refer to that for the database connection. The connection strings (edited, obviously) are: Public Access mongo flame.mongohq.com...

rest-plugin and spring-plugin can not work together in struts2.1 ?

with struts2-rest-plugin my app works well without any xml configuration files or annotations, i get free from messy configurations and get pretty nice URLs following REST-style. meanwhile struts2-spring-plugin also helps me a lot in business compontents dependency managements for its IoC feature. But what a frustration, when i combine s...

Is there tools for performance and load testing of REST service?

We have web-application with REST interface. Is there some tools to test it? ...

How do I get RESTful URLS in Spring 3 MVC?

Hi everyone, I'm having a frustrating time with Spring 3 MVC trying to build RESTful web services. I want RESTful URLs, e.g. "my.domain.com/items", not "my.domain.com/items.do" or anything else that includes an extension. My web.xml includes the following. Note the URL pattern: <servlet> <servlet-name>addictedWebServices</servlet...

If REST applications are supposed to be stateless, how do you manage sessions?

I'm in need of some clarification. I've been reading about REST, and building RESTful applications. According to wikipedia, REST itself is defined to be Representational State Transfer. I therefore don't understand all this stateless gobbledeygook that everyone keeps spewing. From wikipedia: At any particular time, a client can either ...

repeat common error info logic in ActionFilterAttribute

I'm implementing a web API using the REST for ASP.NET MVC framework (MVC 2). I want to encapsulate this code, ideally in an ActionFilterAttribute (?), so that I can decorate specific actions that always perform this same logic: if (!ModelState.IsValid) { return View( new GenericResultModel(){ HasError=True, ErrorMessage="Model is ...

Are *.local service URLs RESTful?

A URL supposedly locates (and not simply identifies) a resource; a corollary is that the same URL must refer to the same resource. However, this rule would appear to be violated in the case of URLs like http://api.local/orders/333, in which api.local does not resolve to a host for everyone, and may not even resolve to the same host in t...

Multiple response types with same REST GET?

I want to create a REST service that can return either JSON or XML. What request parameter do I set in the request to request a certain mime type? I know how to set it in the response, but there must be a way to request a certain one. Currently I do it in the URL restServlet/engine/2WS2345 jsonServlet/engine/2WS2345 This gets me j...

iPhone dealing with xml vs soap vs JSON vs RESTful

I do not have much experience coding systems dealing with web-services. Please help me in solving following confusion. One of my clients want me to build an iPhone App that had native UI controls but deals extensively with Web Services. Right from authenticating the user into a network to loading a list of users or anything related in t...

Using authlogic_api for Rails REST API access

I am writing a Rails back-end API for a Steam game that is only accessed via REST calls, so no user-specific authentication is required. I am trying to implement the authlogic_api plug-in for the Authlogic gem, which uses an api_key/signature mechanism to restrict access. I have implemented the ApplicationSession and ApplicationAccount m...

Using rails resources (REST), how can I use a form to filter results on GET requests (i.e. /products)

Hello, I'm new to rails and having trouble figuring out how to do this RESTfully. I have a route set as map.resources :products and what I want to do is have some way to filter the results returned from the index action. For example, you go to /products which calls the index action per the resources default, then on that page there is a...

Rails: Difference between List and Index

I appreciate this is an incredibly noob question, but having Googled multiple combinations of search terms I regretfully am still in the dark. These things can be difficult when one doesn't know and so obvious when one does. I have semi-home page where incoming customers can choose to see a queried list or do a handful of other things. ...

Understanding REST Entities (variations based on request and responses)

OK so I have a few operations for my REST Web Service. There is some overlap of entities between the different operations but based on what I'm doing some of the elements/attributes are not relevant. Eg. When I request rates I need to get back: <Property id=””> <Rooms> <Room> <Rates> <Rate></Rate> </Rates> ...