I've started my degree project, a mobile application suitable for iPhone, Android and (in the near future) Symbian. The server architecture is the following:
web site (for "standard" users);
web service (for mobile connections), based on TomCat and Axis2;
mySQL DB to storage users data.
Surfing across the web, I've read a lot of disc...
Suppose I write a REST service whose intent is to add a new data item to a system.
I plan to POST to
http://myhost/serviceX/someResources
Suppose that works, what response code should I use? And what content might I return.
I'm looking at the definitions of HTTP response codes and see these possibilities:
200: Return an entity des...
I wanted to create REST friendly URLs with my WCF service endpoints by avoiding the use of .svc. I know I can accomplish this by using IIS rewrite module to append the .svc.
Does anyone else know of a better way to do this?
Please note that I am limited to .NET 3.5 and cannot use .NET 4.0 (so can’t use System.Web.Routing in .NET 4.0)
...
Your triplestore contains a lot of nodes, and you have to make accessible this database via a REST interface.
Now, my solution would be that every named (not-anonymous) node is exported as a resource, whose representation is:
all the triples having the node as a subject
all the triples having the node as an object
all the connected an...
I have a put request that I am trying to unit test for creating a user object.
Unit Test:
void testPUTXMLResponse() {
def mockUser = new User(username:"fred", password:User.encrypt("letmein"), firstName:"Fred", lastName:"Flintstone", middleName:"T", phone:"555-555-5555", email:'[email protected]', activationDate:new Date(), logonFai...
I am looking to do something similar a wordpress slug where I have a URL like this while maintaining RESTful routing:
http://foo.com/blog/2009/12/04/article-title
The reason I am interested in keep RESTFUL routing is that I am unable to use many plugins because I am using custom routes.
I have already done the RESTful appearance with:...
After adding a RESTFul service using Apache CXF to my Spring (and Wicket) project I get the following exception:
org.apache.cxf.BusException: No binding factory for namespace http://apache.org/cxf/binding/jaxrs registered.
I have included the row below in my Spring configuration and thought this would actually solve my problem. But it ...
Hi, I'm developing a REST CodeIgniter Controller and need to POST and PUT to a URL in multiple formats.
The main formats I can think of would be:
XML
JSON
HTML Form data
There will be a response format defined in the URI e.g. /format/xml or /format/csv.
I don't want to have to define the request format in the URI as well.
I was w...
Hi,
I am working with Windows Azure and am just using the Blob Storage. I have setup my Blob Storage to run in its own Solution file with a dummy web role. I run it first on my development machine so the Azure Services start. I have configured the service to use the development shared key and account name.
I am running into an issue...
In Sinatra, if you have a "GET /images/photo1.jpg" request... you can save a lot of time by making a "public" directory. Any route not found is assumed to be inside your "public" directory.
However this seems to work just for GET requests. Is there a way to do something similar for POST requests?
Either:
Turning on some static method...
I am not sure what is wrong with my JSON response from WCF but it is not being parsed properly. I probably made a simple mistake, hopefully someone can spot it. I am using VS 2008 Pro SP1.
When I navigate directly to the url Chrome thinks it is a file download. When I hit say flickr's service it returned a string inline in the brow...
I use dojo 1.3.2 with the Zend Framework 1.10 JSON Server.
I can successfully execute my method getTreeByScope defined as SMD via JSON-RPC 2.0
myService.getTreeByScope({scopeId:1,nodeId:0});
this sends this POST request:
{"id":1,"method":"getTreeByScope","params":{"scopeId":1,"nodeId":0},"jsonrpc":"2.0"}
All is fine.
Now i wanted...
I have a controller dealing with sending SMS Messages, and it's set up as a default resource. Now, business requirements have changed and we want to offer the user three different ways of sending the message:
To everybody on their contact list
To a segmented portion of their contact list (predefined)
To individual contacts that they c...
I set my DataContracts namespace to "" which removed one namespace but I have to remove the other:
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
If theres no other way, how can I serialize my class prior to returning and hack out the namespace?
I have to do this to work with another companys API.
...
The WCF starter kit has WebProtocolException to throw exceptions in WCF. Is this included in .net 4.0?
...
Hi!
I'm using JAX-RS to create restful webservices in Java. I am getting to much overhead in the produced JSON.
Data class:
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Test {
private Map<String,String> data;
Test() {}
public Test(Map<String,String> data) {
this.data = data;
}
publ...
Hi guys,
I've been trying to create an order confirmation page for my rails app, and am not quite sure how to go about it in a restful way.
There were a few answers on this question that got me halfway there, but the problem was that I wasn't quite sure how to set up the form in the rails view so that it would take the user to a confir...
How can i make a SOAP call using TouchJson?
it just work fine with REST call.
...
I would like to thoroughly document an API service (with at least HTML). This service follows resource-oriented RESTful best practices. Are there any tools that can assist in compiling and and maintaining this documentation, or do I have to build it all from scratch?
...
The Twitter API has the friends_count and followers_count available as cached values for the users/show or account/verify_credentials method. As far as I can tell, the only way to determine the number of lists a user is a member of is to make a call to GET list memberships and paginate through using the cursor to count the total number ...