rest

How to model parent-child entities via REST and JAX-RS

I am working on a REST based API, and having some trouble figuring out what the canonical way is to represent parent / child relationships. (I am writing beans in CXF and using JAX-RS and JAXB. I started from the basic example provided by CXF) My problem is let's say you have a Foo and a Bar. There is a 1-N relationship with Foo and ...

What is RESTFul Web Services in Java

Well as the title suggest, what is this Restful Web Service thing in Java, What are its benefits over SOAP Web Services, why the hell someone implemented again some other technology? What is the reason to use Restful one instead of SOAP one? For example I will give a service which will be accessible for many clients from high level lang...

WCF REST Starter Kit has ugly URIs

This starter kit seems to use incredibly ugly URIs that include a "Service.svc" filename. Surely if you're going to have a service called say "Users.svc" you'd want the URI to look like '/users/' rather than '/Users.svc/'? Is there a way this can be fixed? ...

How do I discover RESTful Web services?

When I want to find a "Big" Web service (WS-*/WSDL based) of required functionality I can simply google for ".... filetype:wsdl" because Google indexes also WSDL definitions. Or I can simply use some registries that already crawled the Web for WSDL definitions for me, e.g. SeekDa.com or ServiceFinder. When I want to find RESTful Web ser...

Are my assumptions about configuration correct?

I want to use to implement only REST service - a very simple one returning 'person' by full name or id in JSON. Im probably will be using JAX-RS and maybe JAXB - im not sure if tis is a right choise. I want to use it with following technologies/products and their versions: JDK 1.5 Eclipse 3.5 EE Tomcat 6.0 CXF 2.2.5 Spring 2.5.1 My q...

C# Client - Perl server - File Path Case Sensitivity

We have a C# .Net client application that sends some commands via REST over HTTP. The server is on a Linux machine written in Perl. These commands contain file paths located on the server that can be entered by the user. Since the users are on windows, we'd like for them to be case-insensitive, but this is giving us some issues in loc...

How to customize response structure when working with Axis2 REST web services?

Hi I'm using Axis2 1.4.1 to expose RESTful web services. I need to return xml structure (or any other for example ATOM xml or RSS xml or JSON structure) of my choosing. Axis2 out of the box returns it's own default xml structure (which is SOAP like). The question is what is the right way to customize this. Is it via Handlers? Is it via ...

Which one is best for Iphone REST API or SOAP?

I am working on iPhone Applications. Recently i have used SOAP api to integrate with iPhone application. my main aspect of this particular query is whether SOAP is best or REST is best considering performance issue as a iPhone application. I have tried with SOAP, there will be frequent crashes happened to me. so is it better to use REST...

Force WCF to call a method on every request before entering actual function

I have a RESTful WCF service with many different functions. For each function I need to call an authentication method that I have written. I can manually call this method on every request but I was looking for a way to force the WCF engine to call this method before these functions are entered. Does anyone know if this is possible? Che...

How to develop authentication with resteasy?

I'm making small web service(1) and I decided to use resteasy to make it. But I need to know what would be best practise to develop authentication with resteasy. And what kind of responses webservice should send? Are responses usually in XML or what format, and what format of XML response should be? Btw. I use jboss 4 and Java 5. http...

Is using URL query string variables still RESTful

I'm presented with a problem of using query string variables in a RESTful Asp.net MVC application. Does that violate the RESTful pattern? The thing is that Asp.net MVC uses default route like: /controller/action/id I have to pass through another controller+action combination like: /controller/action/id/controllerX/actionX but this...

Why is squid good for REST architectures ?

In this article, it is argued that Use Memcache if you frequently fetch random entities from a database, and Squid if you use a REST architecture. Please explain why (with regard to Squid). ...

Tips for designing a minimalist data store suitable for an embedded device.

I am trying to design a data store implementation like SQLite, BerkeleyDB or CouchDB suitable for a small embedded computer platform. The main criteria is minimal bloat and simple API. I could not find any products that fit my needs. SQLite is a tad too large and mimics relational databases. CouchDB has a good RESTful API but is bloated...

Need Standard Approach to create a SOAP interface for a deployed REST service

We want to allow our enterprise of service providers to deploy REST or SOAP solutions. These services will become candidates as an "authoritative" service endpoint for a specific request made by a consumer to an enterprise broker. Therefore, we want a mechanism to create a SOAP based interface for exposure by the broker when a provider...

Method to handle "killed" Java jobs?

Our server web app will handle jobs that are requested by REST API requests. Ideally if the server dies during a job (ie: plug pulled), the job should resume or restart at startup. A very convenient way to process these jobs is in a separate thread using some of the concurrent utility classes in Java 5. The only issue is, given a fa...

Grails REST XML API definition

Striving to ship a well documented application, I'm looking for a good way to describe a REST API for my Grails Application users. I know that REST calls should be simple enough to be described by examples, but it doesn't feel formal enough. I've spent a couple of hours looking for a solution suggested by other Grails users, but didn't...

Help with rails rest standard

I have a messages controller thats declared as a resource in my routes. I want to be able to have a list view of received messages and a different view of sent messages. But I dont want to break the rest pattern... What do you guys reccomend? ...

Consuming WCF REST service in multiple ways (.Net, plain XML)

I have become quite frustrated of WCF as I just want to use this simple scenario: Provide a webservice using REST, with a UriTemplate like /method/{param1}/{param2}/ and a 3th parameter that is sent to the service as XML as POST data. Use just plain XML, no SOAP overhead. Be able to generate a proxy in Visual Studio so a .Net using cli...

Extjs to call a RESTful webservice

Hello, I am trying to make a RESTful webservice call using Extjs. Below is the code i am using: Ext.Ajax.request({ url: incomingURL , method: 'POST', params: {param1:p1, param2:p2}, success: function(responseObject){ var obj = Ext.decode(responseObject.responseText); alert(obj); }, failure: function(responseObj...

RESTful URLs for a search service with an arbitrary number of filtering criteria

I want to build a RESTful web service that implements a search interface for a database of biological data. A typical search request could involve a dozen or so attributes of the data. For example, search by scientific name, constrain the search to water depths less than 100m. My first instinct is to have all of the attributes in the...