WCF REST Special characters
HI How do u pass a '/' as a paramter in a wcf service rest way. e.g if the user name has the domain includes "domain/userName" thanks ...
HI How do u pass a '/' as a paramter in a wcf service rest way. e.g if the user name has the domain includes "domain/userName" thanks ...
I've searched the AOL Developer network and found a Contacts API page that says "coming soon" and is dated last year. I've checked the SDK and APIs and found some AIM Buddy references... I'm looking for documentation on retrieving contact email addresses on behalf of users based on their AOL email login. Am I missing something or i...
There is a talk here by Stefan Tilkov, where he is describing REST architecture at its core. I haven't watched all of it, but in the portion where he talks about the 5 Principles of REST (slides 12-19) he mentions maintaining state through the resource (i.e. -- the URI). His example is a shopping cart. Usually the state of your shopping ...
Hi, I'm working on setting up a RESTful request for the application I'm working on and I wanted to use xml as the request in the uri instead of allowing the client to supply the parameters in the URI itself. I'm looking to have the URI like so: someurl/service/request instead of: someurl/service/request?id={id}&name={name} I have...
Hello, are there any solutions to implement REST authentications for clients using only Javascript? Because the Javascript code is always readable by anyone. I've read many posts about REST authentication here but didn't found any ansers. ...
Hi there, I'm implementing a generic restful api in WCF. I require access to a generic object deserialized from JSON (as a parameter to a POST operation). I'm using the raw programming model to permit fine-grained control of the return format. For example: // Create [OperationContract(Name = "CreateJSON")] [WebInvoke(UriTemplate = "{en...
Is there any way to get truly restful routing working in MVC, just like the rails dudes have? I 'm talking about nested urls like /bands/metallica/albums/killemall/track/4 The only library that I found to be useful is Steve Hodgkiss' Restful routing. It seems though a bit risky to base my whole project's routing on this guy's pet-projec...
I m trying to rest-ify our existing WCF service and one of the hurdle is mapping complex type using Uritemplate. For example take a look at the below code [DataContract] public class Stock { [DataMember] public string Symbol { get;set; } [DataMember] public double FaceValue { get; set; } } [ServiceContract] public inter...
I have written a really simple wcf rest service which seems to work fine when I make requests to it through fiddler but I cannot get it to work when calling it from JQuery. Service: [ServiceContract] public interface IService1 { [OperationContract] [WebInvoke(Method = "POST", UriTemplate = "customers/{regionId}"...
I am developing an application for which I want to expose the basic CRUD operations on most of the database entities through REST web services. A colleague has demonstrated some impressive code generation using Grails. I would like to be able to generate my REST services as well, but using ASP.NET MVC instead of Grails. I planning on u...
I have a Rails 2.1.2 site that only has html templates e.g. jobs.html.erb, so when I request a restful resource: www.mysite.com/jobs/1 It renders my job in html, however, if I request: www.mysite.com/jobs/1.xml I get the error: Template is missing Missing template jobs/show.xml.erb in view path c:/workspace/mysite/app...
As far as I see, there's no RESTful way to apply a modification to a resource. In order to do it, you have to PUT the resource as a whole, overwriting the previous representation. I think this is source of problems, in particular when the resource has a large representation. I believe this hints at the lack of a verb in HTTP1.1 : somet...
Which popular websites out there support an HTTP based API? I am looking for content of general public interest (hence, Amazon's RESTful API wouldn't qualify, for example). Some sites which I am aware of: Twitter Netflix Upcoming Google eBay Please note that Although not a direct programming question, it will help programmers fin...
The other minute I read an article on OAuth. It described especially the tokens being exchanged between client and service provider during a series of requests. The article also mentioned that OAuth gains significant popularity in RESTful APIs as authorization layer. As I understood, REST should be kept completely stateless. The questi...
I've got the following setup: map.resources :articles map.resources :users, :has_many => [:articles] Which is fine as I can do /users/2/articles to get a list of articles by a given user. I also have a route setup to do: map.connect 'articles/month/:month/:year', :controller => 'articles', :action => 'index' Which works for find...
I have an interceptor for catching Exceptions and sending emails of this exceptions. All my struts actions extend CoreController which implements SerlvetRequestAware. In mail service class then I have: CoreController cc = (CoreController)invocation.getAction(); HttpServletRequest request = cc.getRequest(); I want to insert request b...
Hi I'm looking for a Perl RESTful framework that have to : work under apache2/mod_perl2 be simple be elegant be light be flexible Am I just dreaming or can I avoid the 'Roll our own' approach? What framework would you recommend? ...
Say I have resource defined as /thing/{id}/ and my id is a int in the database ... What makes most sense in dealing with requests that ask for a resource which ins't an int like /thing/abc/ ? Should I do nothing and possibly let the server return 500? or catch the exception and return 404? or some other http error? or am I missing ...
I'm trying to find a simple, flexible way to add JaaS authentication to REST. I found a post that I think leads me in the right direction (See StevenC's answer). It sounds like the servlet container is responsible for security, not the Jersey code itself. I like this idea, but need a little guidance on implementation. Grizzly is my s...
I assume that RESTful services is a comprehensive paradigm, that it also could cover file uploads too, as a subset of http operations. If so, how does one do file uploads in Rest and specifically, with Zend_Service_Rest? Should my client code somehow read the file and assign its content to some property of restful object? Or there is a...