rest

What's the best programming language for large SOA system?

I am working on a relatively big system with: low level C++/C codes dealing with multimedia data(video/audio) a lightweight database, preferably MySQL but I am open to other better alternatives RESTful web service as the front end All the requests will be handled by RESTful interface, low level C++/C codes dealing with the real hard...

REST api versioning (only version the representation, not the resource itself)

I had a look at http://stackoverflow.com/questions/389169/best-practices-for-api-versioning, but am not quite convinced of the answer, so I am question the versioning part again with a more specific example. I am having two URIs (one with versioning as part of the URI and one without): http://xxxx/v1/user/123 -> favored solution in ...

REST for ecommerce site

I am looking at the creation of a large ecommerce portal that can be used to select items, update quantity, place orders, and ask the shipper to pick up items. A lot of this is transactional in nature like billing, payment, shipping etc. RPC approaches seem to be the traditional way of doing such distributed processing. I am new to RES...

Multiple return type in Jersey Client request

Hi, I'm using Jersey Client API in the following way :- User user = webRsrc.accept(MediaType.APPLICATION_XML).post(User.class, usr); So I'm expecting the response in object of User class which is a JAXB annotated class. However, at times I might also get an error xml and for that I've created a JAXB class ErrorResponse. Now the pro...

Python: Get importing module's details from within imported module

I'm writing a piece of reusable code to import where I need it, but it needs some info about what is importing it. I have a workaround that does what I want, but it's a bit ugly. Is there a better way? Here is a simplified version of what I'm doing. What I want: Import a method and use it, but look at f in mod2. It needs some info from...

How do you set up HTTP ACL's for a WCF 3.0 REST application on Windows 7 ?

Hi, I have been reading O'Reilly's "RESTful .NET" and am working with the example program on pg. 24 - 25. This sets up a custom binding for handling REST requests. When I execute the code, it fails as it does not have permission to set up listening on http://localhost:8889/TestHttp According to MSDN (http://msdn.microsoft.com/en-us/l...

Do WCF 3.5 REST endpoints call associated methods asynchronously?

Hi, When a WCF 3.5 REST endpoint (via WebServiceHost) handles a URI request, does it invoke the associated procedure asynchronously? Thanks, Scott ...

WCF REST WebProtocolException and EnsureStatusIsSuccessful

I am using WCF REST Starter Kit Preview 2 and i have problem with catching exceptions in client side. I am using HttpClient.EnsureStatusIsSuccessful() method to catch my new WebProtocolException(HttpStatusCode.InternalServerError, "Hello World!"); in the client. And since when an InternalServerError happens an ArgumentOutOfRangeE...

Provide API for my website

Hi, I'd like for anybody to be able to register to use my website's API (like facebook apps registration, to get the application key and secret) What 3rd party library can I use? (to be integrated into CakePHP and Restlet(java) preferably)? Thanks ...

Uploading and downloading files using wcf data services?

I have been trying to find information regarding if it is possible to upload and download files using WCF Data Services (formerly ADO.NET Data Services), but haven't been able to make any leads due to perhaps less help content available on wcf data services on the web as of now. Is it possible for us to write a wcf data service so that ...

Silverlight: Access REST service behind forms authentication site

I am new to Silverlight, and I building a simple app which provides an interface for an expense report portal. The portal has a REST API which I can access; I know I can do it using WebClient or WebHttpRequest. However, to be able to access the API, I need to login first. The login is simple forms authentication on login.aspx of the site...

RESTfully getting HTML partial content via AJAX in Rails

In my Rails app, I have a model called "Photo" and a PhotosController. As would be expected, I've RESTfully routed the URLs so that the URL "/photos" returns an HTML-rendered list of all photos (as thumbnails), and "/photos/foo" returns an HTML-rendered representation of the photo with the friendly_id of "foo". (I also do XML, JSON, and ...

URL matrix parameters vs. request parameters

I'm wondering whether to use matrix or query parameters in my URLs. I found an older discussion to that topic not satisfying. Examples URL with query params: http://some.where/thing?paramA=1&paramB=6542 URL with matrix params: http://some.where/thing;paramA=1;paramB=6542 At first sight matrix params seem to have only advantages:...

How to create HTTP POST Request Body content with WCF REST (Starter Kit)

I'm integrating an app with ZenDesk. They have a REST API. I need to send POX in the request body. I'm using the WCF REST Starter Kit. How do I programmatically add my xml to the request body? Here's my unit test: [Test] public void Can_create_user() { // Arrange http = new HttpClient("...

Auth Cookie expiration in .Net

I'm working on an app using ASP.Net's form authentication. The client also makes RESTfull calls to the server (ExtJS components on front end). We are using a custom HttpHandler for the service calls. My problem is that anytime the anytime the authentication cookie expires my HttpHandler 's ProcessRequest method isn't called in order f...

What is the best resource for learning how to handle service calls in the iPhone SDK?

I'm starting out with iPhone development and am struggling to find tutorials on handling service calls whether via SOAP or REST etc. As I understand it the SDK can't handle SOAP so is it best to look into REST? ...

Allow mass asignment in certain contexts

I have several Rails models that I'm trying to expose via a REST api. I'm looking for a simple way to allow mass assignment in certain contexts (through the api or admin interface) but to disallow when populating from user based forms. There are a few catches as well. First, I'm populating a bunch of child objects using accepts_neste...

WCF Service ajax method call returns 404

Hi all, I have deployed a WCF service to SharePoint and on my own machine everything works fine. Navigating to the .svc works and, as expected, navigating to service.svc/Operation generates a "method not allowed message". Posting to the service using jQuery also works perfectly on my own machine. However, when my colleague gets the lat...

Is there an example on how to use Spring 3.0 content negotiation for RESTful services?

I was reading the Spring 3.0 Documentation and Blog Posts (followups) on how to create REST style services with Spring MVC but I can't find any working example on how to use the ContentNegotiatingViewResolver. I have a test controller like this @Controller public class IndexController implements Serializable { @RequestMapping("/inde...

Communication between Rails and WCF

Hello everybody, I am currently working on a WCF application that consumes a Rails REST Service. The problem is when I do a update or remove request, Rails does not return XML, only the following header: HTTP/1.1 200 OK Date: Wed, 13 Jan 2010 13:56:25 GMT Server: Apache/2.2.14 (Debian) X-Powered-By: Phusion Passenger (mod_rails/mod_rac...