0
голосов
1ответов
66 просмотров

Problem authenticating by doing a POST to an HTTPS page

This relates to my other question on accessing a REST service that uses forms authentication, but I feel it is substantially enough a discrete issue. When I paste a REST call into my browser address bar, before I am authenticated, I am redirected to a login page on the services web site. I log ...

0
голосов
3ответов
4106 просмотров

Send file with REST?

Do Java REST frameworks like Restlet and Jersey allow one to send a file as input to a web service? This would encompass the client sending the file and the server then receiving and processing the file.

0
голосов
1ответов
311 просмотров

How to create XML file that uses two DTDs?

We're creating a REST service where the client will send XML containing a financial portfolio. The portfolio XML will use a published standard XML DTD. We would like to add a few bits of data to the portfolio XML. We would like to keep the ability to validate the XML against the published DT...

6
голосов
1ответов
4713 просмотров

WCF REST list HTTP headers on incoming request

I've fired up the WCF REST starter kit and am trying to access the HTTP headers on the incoming request. I've looked at OperationContext.Current.IncomingMessageHeaders but either it doesn't hold them or I'm accessing it wrong. How do I list the HTTP headers?

3
голосов
4ответов
9061 просмотров

Is it ok to return application/octet-stream from a REST interface?

Am I breaking any laws in the REST bible by returning application/octet-stream for my responses ? The REST endpoint receives 5 image urls. { "image1": "http://ww.o.com/1.gif", "image2": "http://www.foo.be/2.gif" } and it will download these and return them as application/octet-stream. CLARI...

2
голосов
3ответов
476 просмотров

Create a wizard that works with multiple Resources

I'm writing an app that has a "wizard" type input section. Think MS Windows Installers. I'm having a hard time figuring out how the most RESTful way to do this with rails. I can make it happen in a non-restful way (already did for version 1 of the app), but I'm trying to be a little more idiom...

26
голосов
1ответов
4183 просмотров

Guidance for writing a wrapper for a REST API

I've written a few very casual wrappers around REST and less structured web interfaces, but all just for fun, with very little attention to error detection and handling, timeouts, etc. Can somebody please give me some pointers, either on practices, or to resources, for developing a solid, profes...

0
голосов
2ответов
167 просмотров

Form response for many different pages in Ruby on Rails

In Ruby on Rails, I have an update method in a controller, that is being called by both ordinary HTTP requests and AJAX requests from many different pages. For example, a user might just use that controller's edit page, which submits to update by either ordinary HTTP or AJAX, depending on if the...

22
голосов
5ответов
5855 просмотров

How do I choose between WCF, REST, POX and RIA services for a new Silverlight application

There a lot of different ways a Silverlight application can connect back to it’ server. Including WCF - Windows Communication Foundation REST (see also) ADO.NET Data Services (or is this just REST?) POX - Plain Old XML (E.g basic xml) RIA services For each of these please say what it’s ...

3
голосов
4ответов
618 просмотров

Network programming: SOAP vs DIY marshalling with XML library?

I know that there are a lot of discussions already on SO about SOAP, bloat, XML, and alternative mechanisms like REST. Here's the situation. A new team member is really talking up SOAP based upon the difficulty of implementing protocols by hand. He recommends gSOAP (project is all in C++.) He is...

0
голосов
2ответов
1014 просмотров

Is HttpClient from WCF REST Starter Kit Silverlight compatible?

I know in earlier versions of the WCF REST Starter Kit the HttpClient class was not usable from Silverlight. Has that changed? I did a couple of quick searches and didn't find anything that gave a clear answer.

11
голосов
2ответов
5821 просмотров

Dynamic URL with CherryPY MethodDispatcher

I need to configure a RESTful style URL that support the following URL scheme: /parent/ /parent/1 /parent/1/children /parent/1/chidren/1 I want to use the MethodDispatcher so that each of the above can have GET/POST/PUT/DELETE functions. I have it working for the first and second, but ca...

1
голосов
2ответов
282 просмотров

Applying the REST architecture outside of the web: resource identification

I'm looking into applying the REST architectural style to a binary network protocol and I am getting hung up on how to identify server resources in a manner that would be true to the style, probably because I'm used to looking at URIs. For example, would an address-port pair qualify as a resourc...

6
голосов
2ответов
1260 просмотров

Best way to submit many (equally named) parameters in GET/REST

For a REST interface: What is the best way to allow the client to set many equally named parameters in a GET? For example if the client should specify multiple possible colors www.example.com/products/{color=green|color=yellow|color=white| ...}

0
голосов
2ответов
252 просмотров

Ruby on Rails: Using a "complete_tasks_controller" for RESTful Rails

I'm having troubling completing a task the RESTful way. I have a "tasks" controller, and also a "complete_tasks" controller. I have this in the complete_tasks_controller create action: def create @task = Task.find(params[:id]) @task.completed_at = Time.now @task.save end I tried call...

0
голосов
3ответов
606 просмотров

Suggestions on addressing REST resources for API

I'm a new REST convert and I'm trying to design my first RESTful (hopefully) api and here is my question about addressing resources Some notes first: The data described here are 3d render jobs A user (graphics company) has multiple projects. A project has multiple render jobs. A render job ha...

6
голосов
3ответов
1864 просмотров

Appending to a resource's attribute RESTfully

This is a follow up to Updating a value RESTfully with Post How do I simply append to a resource's attribute using REST. Imagine I have customer.balance and balance is an int. Let' say I just want to tell the server to append 5 to whatever the current balance is. Can I do this restfully? If so, ...

3
голосов
4ответов
578 просмотров

Updating a value RESTfully with Post

I'm rather new to REST so forgive me if this is a stupid question. So, I have a customer resource. A customer has many credits. So, I imagine a URL for getting customer credits would be customer/21/credits (where 21 is a customer ID) Now, how do I add to the credits, if I don't have the full ...

2
голосов
2ответов
2511 просмотров

Getting error when submitting form using SpringMVC and REST

Created an online form in JSP using SpringMVC tag libraries. The controller for my form is a RESTful web service. The RESTful web service has two calls: (1) http://localhost:8080/myapp/applications/new This brings up the online form in the browser (this works). (2) http://localhost:8080/myap...

0
голосов
2ответов
250 просмотров

Doing a Rails Restful Implementation or Not?

I am pondering on using a Restful implementation in Rails. I'm asking myself if it's the way to go. Should I always go for a Restful implementation or not?

20
голосов
5ответов
13774 просмотров

Is there any JMX - REST bridge available?

Hi I would like to monitor a Java application using the browser but at the same time utilising the existing JMX infrastructure. I know that JMX provides a HTTP interface but I think it provides a standard web gui and its not possible to mashup its functionality with an existing system. Are you ...

555
голосов
15ответов
295985 просмотров

What's the difference between REST & RESTful

What's the difference between a REST system and a system that is RESTful? From a few things I've read most so called REST services are actually RESTful services. So what is the difference between the two.

3
голосов
1ответов
318 просмотров

'New' and 'Create' RESTful action names or 'Create' for both in ASP.MVC

The rails convention is to use New and Create for RESTful action names. The .NET MVC convention appears to be to use Create for both (usually with a post restrictor on the action intended to the true 'Create' method). Personally I would prefer to use New and Create in .net but have been using Cr...

0
голосов
1ответов
1985 просмотров

Bad Request 400 error when trying to do a HTTP POST

I have written a WCF REST Service as follows namespace UserService { // TODO: Modify the service behavior settings (instancing, concurrency etc) based on the service's requirements. Use ConcurrencyMode.Multiple if your service implementation // is thread-safe. // TODO: Please s...

0
голосов
1ответов
747 просмотров

Implementation differences between Zend_Rest_Server & Zend_Rest_Controller

There seems to be two different ways in the Zend Framework to implement a RESTful API, one by adding objects&functions to the Zend Rest Server object inside a action controller, the other through extending the very sparsely documented Zend Rest Controller method mentioned in the Zend Rest Rou...

1
голосов
5ответов
1115 просмотров

Old concepts with new names (namely REST and Cloud computing)

It seems that SaaS and Cloud computing are old concepts with new names, and I am curious if I am wrong. For cloud computing you can look at: Difference between cloud computing and distributed computing? Basically, it seems that when we have been hosting that that is cloud computing, it is just ...

29
голосов
5ответов
49429 просмотров

Objective-C: Best way to access REST API on your iphone

been wrestling with this for some time. I am trying to access a REST api on my iphone and came across the ASIHTTP framework that would assist me. So i did something like //call sites, so we can confirm username and password and site/sites NSURL *url = [NSURL URLWithString: urlbase]; ASIHTTPReque...

1
голосов
2ответов
2182 просмотров

Passing object with WCF RESTful

[WebInvoke(Method = "PUT", UriTemplate = "users/{username}")] [OperationContract] void PutUser(string username, User newValue);//update a user I have a update user method defined as showed above. Then I use a HttpWebRequest to test the method, but how can I pass the User object with this ...

1
голосов
2ответов
788 просмотров

Non-Transparent Proxy Caching of SSL

I asked the question before but didn't phrase it quite right. I'm using RESTful principles to build a secure web-app that uses both transport authentication/encryption and message level security. The message level security is essentially client-independent (still encrypted though), and hence thi...

1
голосов
2ответов
714 просмотров

Multiple services on same JBoss server?

We're developing a few new services that will run on JBoss and will be accessible by REST API-s. These will be Java apps bundled into EAR files. Is it a good practice to deploy these services to the same JBoss server? This would simplify dev, deployment and testing. Not sure if there are ...