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 can't figure out how to configure the dispat...
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.
...
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 stating things like WSDL cleaning up lots...
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 for and when you would or wouldn’t use it. I...
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 user has JS. On the other hand, the user ...
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, professional .NET (or other platform) wrapper fo...
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 idiomatic this time around.
Here's the situati...
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.
CLARIFICATION: The client that invokes this RES...
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?
...
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 DTD. But if we add extra fields the DTD val...
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.
...
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 in and receive a cookie, which authenticat...
I'm trying to create a very simple REST server. I just have a test method that will return a List of Strings. Here's the code:
@GET
@Path("/test2")
public List test2(){
List list=new Vector();
list.add("a");
list.add("b");
return list;
}
It gives the following error:
SEVERE: A message body writer for Java type,
...
Hi all,
I'm trying to upload files within MVC. Most solution I saw on SO is use webform. I don't want to use that and personly prefer using streams. How do you implement RESTful file uploading on MVC? Thanks!
...
Hello There,
Actually I'm building an application in ASP.NET MVC (using C#) and I would like to know how I can perform calls like curl http://www.mywebsite.com/clients%5Flist.xml inside my controller
Basically I would like to build a kind of REST API to perform actions such as show edit and delete, such as Twitter API.
But unfortunately...
I see multiple questions asking which is better, SOAP or REST from the development of the Web Service itself. However, not a lot of discussion of the pros/cons from the client perspective. If you were to write an Application and have a choice between two Web Service APIs that are similar in every way except one is SOAP and the other is R...
WCF Rest Starter Kit OnGetItems returns IEnumerable<KeyValuePair<string,BusinessObject>>
On serialization , It becomes
<ItemInfoList>
<ItemInfo>
<EditLink>http://localhost:1394/BService.svc/1</EditLink>
<Item>
<Name>Foundations</Name>
</Item>
</ItemInfo>
<ItemInfo>
<EditLink>http://localhost:1394/Service.svc/2</EditLink>...
Hi all,
I just start learning WCF. I have created a very simple RESTFul Webservices using WCF Service Application template. When I run it on my local machine, I can access the url like this.
http://localhost/MyServices.svc/GetItem/123
So, I published it and copied all files to the new Virtual Directory in the server which hosts IIS...
So, I'd like to know how many results I'll be getting back from a RESTful uri GET request. I don't know of any way to do that at this point. Is there a way to do that? Since REST just throws out properties, I don't know if it is able to take a count of its results, but it can skip results and take a subset of results.
Anybody have ...
I am trying to implement a bulk update feature in a Rails app, the model I want to update is a restful resource. I need to display a table where each row is a single resource and has a check box. The user can check as many boxes as they like and then chose an action to perform on all of the selected resources, eg delete, change status et...