We have a job management application running (Access) with the database in SQL Server 2005. A third party is going to provide job information to us, which they make available as XML via an SSL web service using a REST style interface. The service needs to be polled automatically on a regular - 5 or 10 minutes - basis. The XML data nee...
I am pulling my hair out on this one... I am using the ASIHTTPRequest (http://allseeing-i.com/ASIHTTPRequest/) wrapper library for accessing Amazon S3 storage. I am able to connect just fine and grab a listing of buckets without any problems. My frustration is with trying to UPLOAD (PUT and/or POST) a new object (a photo) to an existing ...
Hi All, I am very new to the iPhone SDK and have read many threads on RESTful service integration with the iPhone. However I am none the wiser. Can you help?
I have some PHP and a MySQL database string on a server. I POST 3 pieces on information from the iPhone to the PHP which then does some thinking and chatting to the database.
It t...
I have a controller with actions:
class GameController < ApplicationController
before_filter :set_titles
def prestart
end
def wait
end
def play (game)
end
def button
end
def finish
end
def set_titles
end
set_titles will get the page title (and other general properties for all actions)
All other actions check for something and ...
What tools are recommended to aid in developing RESTful web services? For instance, a good front end for manually calling REST APIs, and a TCP/IP or HTTP monitoring tool seem like good starting points. I am looking for specific product recommendations. OS X recommendations would also be helpful.
...
This question is in terms of a RESTful ROA (Resource-Oriented Architecture). A resource on the Web has a URL (or URI if you prefer), for instance http://myserver.com/me.jpg.
You can get a file on the local (Windows) machine like this: file:///C:/MyPictures/me.jpg. This is not exactly a "Universal" Resource Identifier; it doesn't work...
Scenario Imagine a REST service that returns a list of things (e.g. notifications)
Usage A client will continually poll the REST service. The REST service retrieves records from the database. If records are available, they are converted into JSON and returned to the client. And at the same time, the retrieved records are purged from the...
We are looking to host a Java Domain Model (written using DDD) inside a web application. Ideally I would like to support RESTful resources and requests, having a single site to support both users and a REST api.
Ideally the same url could be used for both end users and the RESTful API of a given feature (with HTTP content types / negoti...
Hi,
I'm writing a client that consumes a non-REST API (i.e. GET site.com/gettreasurehunts), which requires that I specify all parameters (even the resource ID) in the request's HTTP body as a custom XML document.
I'd like to use Rails and ActiveResource, but I'd be forced to rewrite almost all of ActiveResource's methods.
Is there anot...
Is wcf a viable REST solution? It prevents you from using some special characters like # so requesting tag/c# does not work. is there a work around, is this by design?
...
Hi,
Is there a standard way / C# library to convert a string into a user friendly uri in order to use it in a RESTful MVC environment?
StackOverflow does this, for example "èòà" are converted to "eoa", question marks are removed while dots, commas and brackets are replaced with "-" and so on.
Any suggestion? Thanks
...
I am starting out on a WCF project that has an underlying RESTful architecture to it. I have so far a Service Class and a Service Contract via an Interface in place. If I go to my Solution Explorer and right-click on the .svc file (Service Class) and View in Browser, I can view my Data Sources in a RESTful way, e.g. Addresses/ and /Emp...
Do I need to learn the WCF Service trace viewer tool?
I understand I can use the WCF Service Trace Viewer tool to trace messages leaving from clients, or arriving at servers.
Can I configure WCF tracing to record REST messages as well as SOAP? Are there other neat tricks I can do?
I've developed with WCF for a long while but I've n...
I've been looking at examples of REST API's like Netflix http://developer.netflix.com/docs/REST_API_Reference#0_59705 and Twitter and they seem to place error messages in the statusText header response instead of the responseText. We're developing an internal RESTful api and I am arguing for sending custom statusText messages and ignorin...
I'm looking to implement content negotiation on some resources in a Rails app. I'm using Mootools and will likely be able to tweak the content type accepted by an XMLHTTPRequest to "application/json".
Is there any way to pick up on this information in my controller and generate JSON responses instead of XHTML?
I'm trying to avoid doin...
I've got some problems parsing the response of a Last.fm API call from a Silverlight 3 application. I pass the response string of the REST service call, which was made via the WebClient class, to the XDocument.Parse() method to get a XDocument.
Parsing the xml string seems to be successful but when I look at the resulting XDocument it ...
I've recently started reading about the WebHttpBinding usage in WCF and being able to consume REST services, however, I've been stumped on this one for a bit now.
I'm writing a service that makes a single request to a given api, however, can return one of many responses.
For example, the generic response:
<ActualResponse>
<ResponseIte...
Hello all,
I really need advice on how to do the following. I have tried several things and they have not worked.
I would like to upload a video to viddler using their REST API.
I wish to upload a video directly to them. However, I want to upload to them without reloading the page?
How can I do this?
I have tried AJAX with an iFram...
Hey guys,
I'm developing a REST api. To simplify my question, I have an API that allows people to create a new blogpost.
Blogposts can live in categories, and categories are specified by a category id. If a user would supply a category-id that doesn't exist, which HTTP error code is the most appropriate?
404 for Not Found seems bad, s...
I have two scaffold-generated Models, student and class. They have a many-to-many relationship implemented with has_and_belongs_to_many.
I'd like to be able to change which classes a student is in as well as which students are taking each class. That is, I want to modify a student's classes variable (adding and removing items from it) ...