rest

Access to a Drupal site via an HTTP API

I need to be able to edit nodes from a client outside of Drupal (this cant be implemented as a Drupal module). I'd like to find a module that exposes basic Drupal functionalities as an HTTP API (REST, SOAP, JSON, ...). I found the webservices module, but I cant find any documentation for it. Do you know where I can find documentation fo...

DWR like Javascript library for REST

Is there a Javascript library like DWR that can generate javascript stub for REST api. We are using Jersey/JSR-311 for REST on server and was wondering that instead of using libraries like Jquery or dojo if there is a library that can take a Rest class annotated using JSR311 annotations and create javascript stub like DWR does? ...

C# Rest web service and Android Client

Hay, I'm taying to make a simple Rest web service in C# and client on android. I find a simple C# web service, which add two number, on this link: http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/RESTEnabledService05122009034907AM/RESTEnabledService.aspx Can anyone help me to make Android client for this web service Thanks ...

WCF REST: WebHost failed to Process Request

I have a WCF service deployed behind the load balancer, when I try to reach it with SOAP it works great, but when I try to reach it via REST url I get the below mentioned error. This is the REST URL I try to reach it with https:// devreporting.dev.sample.com/ReportingManagement.svc/getAddtionsByCategory.. The load balancer VIP is https...

Website UML example

Can you give me an UML example of a website or REST server. Thx! ...

Consume REST service with JME (or J2ME)

Hello, I need some help getting started with this. I need to know how to call the REST service and parse the xml. My php script only sends back some xmlcode, nothing else.(no wsdl or uddi) The platform for the Nokia 5800 is S60 third edition.(that one will apply) The Nokia sdk go's by the same name. I installed Netbeans for this pro...

Restful web services

What do you need to avoid in setting up a Restful interface to make sure you have not turned it into an RPC? ...

implementing the REST way

Guys, I did not realise the power of REST until I started using scaffolds in rails. This makes life so simple. Now everytime I try to develop a web application I only think of those 6 verbs. But I have a doubt. How is search related to REST. Basically the search page which contain a form for the user to input a search term. which verb ...

Encrypting and Decrypting XML sent and received by RESTful WCF Web Services

I have a web service that receives data in XML. I wish this XML to be encrypted before it is sent and have the serializer handle the decryption. This would let the service methods receive the objects as normal with the encryption detail hidden from them. I have looked at IOperationBehaviour and inheriting from DataContractSerializerOp...

Generating RESTful API documentation from a WCF Service

I've recently started on a project to build out a RESTful API in WCF, and I'm going to need to expose documentation along with the API itself. I was hoping to leverage the XML code comments in my docs for this documentation. But what I want to output is just the contracts that are exposed by the service: the endpoints and the JSON/XML o...

DataContractSerializer outputting XML with "field" appended to all elements and out of order

I'm new to creating WCF REST services - so please let me kwow if I'm doing things wrong here. I have a REST-based service developed using WCF, with the following DataContract defined: namespace Messaging { [DataContract(Name = "Email", Namespace = "")] public class Email { #region Fields private string s...

Parsing JSON Payload in Rails When Using Custom MIME Type

A Rails application with a RESTful interface needs to accept POST data using a custom MIME type based on 'application/json'. Let's call that MIME type 'application/vnd.com.example.Foo+json'. Registering the custom MIME type in Rails using Mime::Type.register works fine in that the application recognizes the MIME type given in the "Accep...

Database handling from web service - how to improve the performance?

Hi, I created a web service which is called from the client side to store the data into the database. These data are sent every 200 ms from a single user and each time the data are sent the database connection is opened and closed which I believe is not good for performance. The data are stored by calling REST.StoreAcceleration() metho...

how to query restful rails app with curl?

here's my problem.. resource: user method: create I call curl like this: curl -X POST -H 'Content-type: text/xml' -d '<xml><login>john</login><password>123456</password></xml>' http://0.0.0.0:3000/users but the params hash in rails look like this: {"xml"=> {"login"=>"luca", "password"=>"123456"}} I want it to look like this: {"lo...

Restful vs Soapbased

Friends, If I need to make a choice between using Restful versus Soap based web services, what factors should be considered in making this choice. Assuming that my applications can support both Restful and Soap based web services - what pros and cons need to be considered ? Thanks, avajurug ...

Well-behaving RESTful Client Interactions

I have what seems to be a fairly simple question about implementing a data access client that strictly adheres to REST architectural principles. To start, let's assume I have a well-behaving REST API that I want to consume using a Django application. I'll start by discovering what services are available (edited for follow-up): GET examp...

How to force requests to be JSON? I.e. how to block XML body?

I have a REST WCF service and a WCF client application for it. My operation has the WebGet attribute with the following properties: BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json However, when I use the WCF client, the request is made with the body in XML format! This...

javascript REST client - issue with window.resize event

Hi, I'm building a web javascript frontend to a Geo Mapping REST api. The backend recently changed from using DWR to REST to avoid cross-domain issues with browsers. The issue is that in both IE6 and IE7 the resize event is not triggered anymore if there is a REST call made while the application loads. If the server calls made during ...

Accept Header and HTTP DELETE in Rails App

If a server always responds with 204 after a successful HTTP DELETE, when is it appropriate to require clients to send an Accept header? It seems like the correct behavior would be to never require an Accept header. The reason I ask is that when developing a RESTful Rails application, if the Accept header is unset, Rails defaults to HT...

Return XML Response in REST Service

Hi. I am writing a RESTful web service where in I want to return a XML containing some resultset. I have used XSTREAM and parsed the object into XML string. Since I need to return this string, I need to know how to pass it back to the calling client. One way is to return the RESPONSE to the calling client. And my sample code here show...