rest

Connection between jsp file and resource class

My example is using the ImplicitViewable configuration feature (see WEB-INF/web.xml) and implicit viewables approach, where the JSP pages are mapped via being placed at the right path corresponding to the appropriate resource package name. It doesn't work. What should I do as an extra? if ${it.name} is written into jsp file also resour...

Incrementing resource counter in a RESTful way: PUT vs POST

I have a resource that has a counter. For the sake of example, let's call the resource profile, and the counter is the number of views for that profile. Per the REST wiki, PUT requests should be used for resource creation or modification, and should be idempotent. That combination is fine if I'm updating, say, the profile's name, becaus...

Is RESTful JSF possible?

I recently sat down to port a simple Rails app I have to JSF (using Seam) to get a feel for which I would be more productive in. The Rails app is RESTful, which I like. Upon starting into JSF, I was surprised to learn, perhaps incorrectly, that JSF only support POSTs, which makes it inherently non-RESTful. I searched around a bit but ca...

REST web service with asp.net

How can I add a reference to the REST web service to an ASP.NET application? The REST is generating the WADL file. How can I add a reference to my application . I tried the regular way, using Add Web Reference option, but that gives me an error. ...

How do I sanitize title URIs?

Hello, I am programming a blog and I want the URIs to be the title like the question title here in stackoverflow or like wordpress. What are the rules for sanitizing a URI? Is there an already made code in PHP that does this? Thanks in advance, Omer ...

CakePHP JSON extension?

I've created a simple REST service that serves data as XML. I've managed to enable XML, JS and RSS format but I can not find the way to enable JSON format. Is JS == JSON? Guess not :). How can I enable this in version 1.2/1.3? Thx!! ...

How to use the same model with Rails for different controllers while staying RESTful

Hello, I need to have two separate pages on the site I'm planning to build that are very similar that I don't need to introduce new DB tables or models. I would also like to stay RESTful. If I'm to use the same controller/model I will need to have new methods other than standard index, new, edit...etc which makes it non-restful or I w...

CakePHP REST API documentation

Hi! I've created a public restful application and I would like to generate API documentation for users. For REST i think I have to provide URLs and parameters. What is the best way to prepare it? Thanks! ...

WCF Unicode UrlEncoded Get not coming over nicely

I have a RESTful WCF service which accepts GET verbs with Unicode encoded urls. The Unicode characters are translated as little boxes strangely when I get the data on the server. Is there something I have to tell the service contract to do in order to get Unicode UrlEncoded Gets to translate into nice strings? Here's my contract: [Ope...

What are the main patterns and/or attributes that make an application RESTful?

What are the main patterns and/or attributes that make an application RESTful? ...

Can you make Flash URLRequest /web services work from behind a proxy in IE?

We have a Flash application that connects to a WCF REST web service returning json data. We use URLRequest/URLLoader with POST requests, not a lower-level library using sockets like as3httpclientlib. The application runs swimmingly well in the normal course of duties, but when we are behind a corporate proxy server (ie. In Internet Exp...

Unable to set maxReceivedMessageSize through web.config

Hello there, I have now investigated the 400 - BadRequest code for the last two hours. A lot of sugestions goes towards ensuring the bindingConfiguration attribute is set correctly, and in my case, it is. Now, I need YOUR help before destroying the building i am in :-) I run a WCF RestFull service (very lightweight, using this resourc...

WCF Custom JSONP Binding and httpsTransport

My question revolves around a WCF REST Service for IIS that responds with JSONP. I took the classes in this solution: http://msdn.microsoft.com/en-us/library/cc716898.aspx and added them to mine. Things were working fine on my developer workstation using impersonation with httpTransport but when I tried to move up to the development se...

WCF XmlSerialization Attribute(POST)

I currently have a WCF service to consume a remote REST service with the following: [ServiceContract] [XmlSerializerFormat] public interface IMyApi { [OperationContract] [WebGet( ResponseFormat = WebMessage.Xml, UriTemplate = "RemoteServicePage.jsp")] MyNewClass Send(); } The nice part about this is the XmlSerializerFormat attr...

Difference between REST and WebServices

What is difference between REST and WebService (SOAP), I looked at the facebook api, they use HTTP headers and some parameters (probably xml or non) and return result in xml, where else SOAP does exactly same, HTTP headers + xml parameters and returns headers + xml. REST also requires some authenticated token where else SOAP uses http s...

RESTful route for a list of members that are not in a collection.

Hey there, I'm trying to figure out what the best way to show a list of members (users) that aren't a collection (group). /users is my route for listing all of the users in the account /group/:id/members is my route for listing all of the users in the group /users?not_in_group=:id is my current option for showing a list of user...

Connect to .Net Web Service with iPhone SDK

I need to use a web service to be able to sync my iphone app with my Asp.Net website. Data needs to be sent both ways. I haven't started building the web service nor the client yet so before I start, what's the best way to do it? Using SOAP, REST? I understand that support for SOAP or REST isn't built-in in iPhone SDK but are there any r...

What is the best RESTful way to pass string collections as parameters?

I've got a rails application with RESTful-ish URLs where I need to pass in a collection of strings (tags), and I don't want to use the query string. Currently I'm using a route similar to /controller/tagged/:tags/foo/:foo/bar/:bar.:format This requires the 'tags' to be encoded which is a pain and error prone if you want to manually typ...

CakePHP XML view file

I would like to set CakePHP framework to allow page rendering when view file does not exist. I have all the definition set on layout and do not need extra empty files. Thanks! ...

iphone RESTful webservices

Not even sure if the title is correct, however, what I'm trying to do is use the standard NSURLConnection class to handle responses from calling my webservice. I am using the POST method to update a database and the GET method to retrieve rows from the database. The problem I have is that these 2 actions may occur simultaneously so tha...