I am attempting to create a custom route in rails and am not sure if I am going about it in the right way. Firstly I have a RESTful resource for stashes that redirects to mystash as the controller:
map.resources :stashes, :as => 'mystash'
site.com/mystash goes to :controller => 'stashes', :action => 'show'
Which is what I want. Now ...
I see APIs such as PayPal, etc. offering to call their services using NVP or SOAP/WSDL. When using a .NET environment (3.5) using traditional web services (no WCF) which is better and why? I know WSDL lets you drop in the API URL and it generates the wrappers for you. So then why do companies even offer NVP?
...
Hi, I'm embarking on a new web app we want do do it RESTfully. Now it is time to begin designing the interactions, and something sorta basic about REST has me stumped. I am trying to figure out the best way to mediate the impedance mismatch between REST and OO without falling down the slippery slope of RPC. Let me give a (contrived) e...
I have an Operation Contract that accepts a complex object and I'm calling the operation through jQuery. How do I pass in a complex type object like that using jQuery. Below is the operation signature:
public Resolution CreateNewResolution(Resolution NewResolution);
I need to pass in a Resolution object on the client, but I don't know...
I currently use Apache Axis. But I am creating a new project in Intellij IDEA and I have the option to add one of the following:
1) Apache Axis
2) Glassfish /JAX-WS 2.x RI / Metro 1.x / JWSDP 2.0
3) Restful Web services
I am choosing Axis because it's the one I am used to, but I am still wondering if it's the easier option.
...
Hi,
I believe that I am in need of implementing custom Fitnesse responders for a client but have not found much success in my research/attempts to make this work. The idea is that the client will have suites of tests written in Fitnesse but that the results will be published to their database via a web service on their local intranet. W...
It is conceivable that another client also modified other aspects of the resource in the interim. So is it best practice to always include the full representation in the response to a PUT, despite the bandwidth overhead?
...
If I am POSTing a new resource with 100 fields, and the server adds 3 fields of its own, like date created, status, etc., is it RESTful to only return a mini-representation of the resource that includes only the 3 new fields in the body of the 201 CREATED response?
Then the client can just add those 3 new fields to its local represent...
Hi
I am working as a tester on a system based on a Rest API. Part of my job is to use different applications to POST files to the Rest API and then accessing the API directly via a Rest Client to verify that the XML is correct.
So far I have been using the RESTClient firefox add-on.
But now we are getting rid of our old login in favo...
I have REST services which should receive really long queries via GET. Say for example I want to query a service with many geographical coordinates to find out something about all this coordinates.
1) My first thought was to use long URIs and increase the max URI length of the servlet container.
It would look like this:
GET http://so...
Hi,
I have a problem that googling couldn't solve it.
I have a REST WCF service that will be called from a form like this and upload a very small plain text file:
<form action="http://www.server.com/myService.svc/Upload" encType="multipart/form-data" method="POST">
SERIALID <input type="text" size="20" name="SERIALID" value=""><br...
I'm trying to create a WCF client that accesses a REST API. The API requires that a GET be used for a certain call, so I'm using the [WebGet] attribute for the method. However when I call the method, the actual call that is produced is a POST (viewed by using Fiddler). My contract is as below:
[OperationContract]
[WebGet(UriTemplate = "...
I'm designing a web service that serves up JSON through a REST API. This API is currently being used by an iPhone app to do CRUD operations.
My question is, can I design a web client that uses this REST API using nothing more than ExtJS (or some other RIA framework) and HTML pages? In other words, can I create a static HTML page that us...
Hi guys,
We're using Jersey 1.0.3 to implement a REST client. This client needs to post an XML envelope containing UTF-8 characters. When debugging, we can clearly see that the entity that is being sent is correct. However, the request that is being sent changes the entity and garbles non-ASCII characters. We've dug into the Jersey sour...
[OperationContract]
[WebInvoke(Method="POST",
BodyStyle = WebMessageBodyStyle.Wrapped,
ResponseFormat = WebMessageFormat.Json,
UriTemplate= "SignIn/Username/{Username}/Password/{Password}",
RequestFormat= WebMessageFormat.Json)]
string SignIn(string Username,string Password);
My config fil...
I'm trying to setup OpenRasta with .Net 2.0 and Visual Studio 2005 and keep getting the following error
'OpenRasta.Configuration.Fluent.IHas' does not contain a definition for 'ResourcesOfType'
using (OpenRastaConfiguration.Manual)
{
ResourceSpace.Has.ResourcesOfType<Home>()
.AtUri("/home...
I'm using Spring MVC (3.0) with annotation-driven controllers. I would like to create REST-ful URLs for resources and be able to not require (but still optionally allow) file extension on the end of the URL (but assume HTML content type if no extension). This works out-of-the-box with Spring MVC as long as there are no dots (period/full-...
I would like to implement a REST service which is able to parse query such as retrieving the users created after startdate and before endate and with the privilege of admin. It seems that standard REST implementation could only query by ID. Do I need to self-defined protocol to make this kind of query possible or any standard?
Thanks! ...
Can anyone explain the difference between a HTTP-GET and HTTP-POST? And why do people say that a HTTP-POST is unsecured then a GET?
...
Is there a way to use the Rest Starter Kit in Visual Studio 2010 Beta 2?
I installed the starter kit but cannot see the templates anywhere.
Thxs.
...