rest

Does Silverlight support WebHttpBinding?

Does Silverlight 3.0 support WebHttpBinding for WCF RESTful services? ...

Developing a new RESTful web service in .NET -- where should I begin? ASP.NET-MVC, WCF?

Exposition (short version at the bottom) The objective is to build a service that I will then consume via jQuery and a standards based web front-end, mobile device "fat-clients," and very likely a WPF desktop application. It seems like WCF would be a good option, but I've never built a RESTful service with WCF, so I'm not sure where to...

Setting Jersey to allow caching?

I have the following returned from a Jersey @GET method. It works, fine but always includes the No-cache header. I'd like to allow the client to cache this data since it rarely changes. ResponseBuilder rb = Response.ok(c); CacheControl cc = new CacheControl(); cc.setMaxAge(60); cc.setNoCache(false); return rb.cacheContro...

IIS offers .svc file for download instead of executing it on the server!

Hi there, My RESTful WCF Web service appears to break itself if I leave it alone for a while! I can leave my PC with everything working and when I return and test the service with a simple url request it'll offer me the .svc file for download instead of initiating the request on the server! This WCF service sits in it's own IIS Applica...

ASP MVC Restful urls and Ajax calls

This is a common problem in ASP MVC. I have a simple search form with four fields and a search button. The search button uses jquery to populate a html table with the results. The problem is that we are also trying to maintain state, as in the user goes to a different page then hits back, we want to fill the search fields with the searc...

REST and WCF connection

I am specifically looking for an example which use a) WCF & REST. After a long googling, though I got some but they are beyond my understanding. Could some one please give me a very simple example say "Hallow World" or Summation of 2 numbers which will give me a clear insight about how to write a server, and also how to consume the same...

Rails 2.3.5 Creating RESTful routes for a model named "Software"

Topic says it all guys, my program needs to be able to keep track of the "software" that belongs to a user, as such I have a MVC for "Software". However, I can't use RESTful routes at the moment since my plural and singular names are the same, it's "software" for both. Can anybody help me either, create new named routes or suggest a ne...

When dealing with WebServices in Android which approach would be better KSOAP2 or Android default HTTPClient

As I am writing a Webservice client to deal with the webservices for my application in android, I am bit confused about the approaches among KSOAP2 and Android default HTTPCLient, Which one would be more relevant to use in Android Suggestions Welcome. Thank you. ...

Restful vs Other Web Services

What does it make Restful webservices different from the other Web Services like SOAP? ...

Adding a service reference to a WCF service with webHttpBinding and security mode Transport results in an incorrect config file.

I have searched and searched and I cannot find a solution. It seems like it would be relatively common to run into this... WCF REST service over https. When I add the service reference all of the proxy classes are correct and I can create the objects defined in the service, call the services, etc. However, I can't create a configured ...

CakePHP RESTful actions

I have successfully made my 4 CRUD actions restful by using mapResources in the router config. but I need to filter which ones are actually RESTful. How do I filter which ones are RESTful? I don't want to allow rest calls to the delete actions for example but I do however need to keep the delete action so I can moderate. ...

Curious: Whats currently the recommended way of coding REST web services in C#?

So, what do the experts recommend? WCF Rest Toolkit? ADO.NET (now WCF) Data Services AKA Astoria? Hand rolling it using ASP.NET MVC? Other? Requirements are fairly vanilla: HTTP GET/POST for a small number of resource types, XML and JSON output, needs to live in the same appdomain with a SOAP ASMX web service. My criteria are: A) p...

WCF Rest Help Page

How can I update a WCF REST services UriTemplate to be www.mysite.com/... instead of the system name http://mysystem/... When I go to the service help page I see the system name and I don't want the end user to see that. http://myServerName.local/WCF/Svc.svc/blah/function I want to see http://www.mysite.com/WCF/Svc.svc/blah/fu...

JAX-RS @PathParam How to pass a String with slashes, hyphens & equals too

I am new to JAX-RS and I am trying to use Jersey to build a simple RESTful Webservice. I have 2 questions. Please clarify these: I am trying to have my simple webservice like this URL http://localhost:8080/SampleJersey/rest/inchi/InChIName The InChIName is a string like this InChI=1S/C9H8O4/c1-6(10)13-8-5-3-2-4-7(8)9(11)12/h2- 5H,1H...

How configure a RESTful controller in Spring 3 with annotations?

I am trying to create a RESTful controller using Spring 3.0. The controller is for a management API for a portal application. The operations I want to perform are: GET /api/portals to list all the portals POST /api/portals to create a new portal GET /api/portals/{id} to retrieve an existing portal PUT /api/portals/{id} to update an exi...

Rails: How do I add an additional parameter to resource-based link_to call?

I have a resource defined in routes.rb like so: map.resources :users I like using the cleanest link_to option, which would be: link_to @user I'd like to add an additional parameter to this call, though: "view=local" If I were using the user_path, I'd do this: link_to user_path(@user, { :view => 'local' }) Is there a way to get ...

Rest-client log in with authlogic

Hello, I am trying to use the Rest-client gem to do a few small tasks for my app which uses Authlogic to authenticate users. From Rest-Client's API, I see that one can post data necessary for the log-in process like this: require 'rest_client' RestClient.post "http://127.0.0.1:3000/user_sessions", {:user_session => {:username => 'myuser...

Testing ASP.NET webforms applications

If you're in my position you have a big WebForms applications which have escalated to this unmaintainable thing. Things break when you add new features and you need an inexpensive maintainable way to do some kind of automated testing. Now, from my understanding, the right thing to do would be to try building an abstraction layout of the...

How to implement a REST API with included data in Ruby on Rails?

Hello, I'm working on a Ruby on Rails app which has a REST API. I manage two formats JSON and XML. Very often to simplify the use if the API, I'm making includes. But when you add params to to_json and to_xml like :only, :except, it's not only applied on the root object but on all the objects included. Do you know libs or methods to an...

How do you handle RESTful URL parameters in a Ruby on Rails application?

I am dealing with a very simple RESTful Rails application. There is a User model and I need to update it. Rails coders like to do: if @user.update_attributes(params[:user]) ... And from what I understand about REST, this URL request should work: curl -d "first_name=tony&last_name=something2&v=1.0&_method=put" http://localhost:3000/...