I am working on a relatively big system with:
low level C++/C codes dealing with multimedia data(video/audio)
a lightweight database, preferably MySQL but I am open to other better alternatives
RESTful web service as the front end
All the requests will be handled by RESTful interface, low level C++/C codes dealing with the real hard...
I had a look at http://stackoverflow.com/questions/389169/best-practices-for-api-versioning, but am not quite convinced of the answer, so I am question the versioning part again with a more specific example. I am having two URIs (one with versioning as part of the URI and one without):
http://xxxx/v1/user/123 -> favored solution in ...
I am looking at the creation of a large ecommerce portal that can be used to select items, update quantity, place orders, and ask the shipper to pick up items.
A lot of this is transactional in nature like billing, payment, shipping etc.
RPC approaches seem to be the traditional way of doing such distributed processing.
I am new to RES...
Hi,
I'm using Jersey Client API in the following way :-
User user = webRsrc.accept(MediaType.APPLICATION_XML).post(User.class, usr);
So I'm expecting the response in object of User class which is a JAXB annotated class.
However, at times I might also get an error xml and for that I've created a JAXB class ErrorResponse.
Now the pro...
I'm writing a piece of reusable code to import where I need it, but it needs some info about what is importing it. I have a workaround that does what I want, but it's a bit ugly. Is there a better way?
Here is a simplified version of what I'm doing.
What I want: Import a method and use it, but look at f in mod2. It needs some info from...
Hi,
I have been reading O'Reilly's "RESTful .NET" and am working with the example program on pg. 24 - 25. This sets up a custom binding for handling REST requests. When I execute the code, it fails as it does not have permission to set up listening on http://localhost:8889/TestHttp
According to MSDN (http://msdn.microsoft.com/en-us/l...
Hi,
When a WCF 3.5 REST endpoint (via WebServiceHost) handles a URI request, does it invoke the associated procedure asynchronously?
Thanks,
Scott
...
I am using WCF REST Starter Kit Preview 2 and i have problem with catching exceptions in client side.
I am using
HttpClient.EnsureStatusIsSuccessful()
method to catch my
new WebProtocolException(HttpStatusCode.InternalServerError, "Hello World!");
in the client.
And since when an InternalServerError happens an ArgumentOutOfRangeE...
Hi,
I'd like for anybody to be able to register to use my website's API (like facebook apps registration, to get the application key and secret)
What 3rd party library can I use? (to be integrated into CakePHP and Restlet(java) preferably)?
Thanks
...
I have been trying to find information regarding if it is possible to upload and download files using WCF Data Services (formerly ADO.NET Data Services), but haven't been able to make any leads due to perhaps less help content available on wcf data services on the web as of now.
Is it possible for us to write a wcf data service so that ...
I am new to Silverlight, and I building a simple app which provides an interface for an expense report portal. The portal has a REST API which I can access; I know I can do it using WebClient or WebHttpRequest. However, to be able to access the API, I need to login first. The login is simple forms authentication on login.aspx of the site...
In my Rails app, I have a model called "Photo" and a PhotosController. As would be expected, I've RESTfully routed the URLs so that the URL "/photos" returns an HTML-rendered list of all photos (as thumbnails), and "/photos/foo" returns an HTML-rendered representation of the photo with the friendly_id of "foo". (I also do XML, JSON, and ...
I'm wondering whether to use matrix or query parameters in my URLs. I found an older discussion to that topic not satisfying.
Examples
URL with query params: http://some.where/thing?paramA=1&paramB=6542
URL with matrix params: http://some.where/thing;paramA=1;paramB=6542
At first sight matrix params seem to have only advantages:...
I'm integrating an app with ZenDesk. They have a REST API. I need to send POX in the request body. I'm using the WCF REST Starter Kit.
How do I programmatically add my xml to the request body?
Here's my unit test:
[Test]
public void Can_create_user()
{
// Arrange
http = new HttpClient("...
I'm working on an app using ASP.Net's form authentication. The client also makes RESTfull calls to the server (ExtJS components on front end).
We are using a custom HttpHandler for the service calls.
My problem is that anytime the anytime the authentication cookie expires my HttpHandler 's ProcessRequest method isn't called in order f...
I'm starting out with iPhone development and am struggling to find tutorials on handling service calls whether via SOAP or REST etc. As I understand it the SDK can't handle SOAP so is it best to look into REST?
...
I have several Rails models that I'm trying to expose via a REST api. I'm looking for a simple way to allow mass assignment in certain contexts (through the api or admin interface) but to disallow when populating from user based forms.
There are a few catches as well. First, I'm populating a bunch of child objects using accepts_neste...
Hi all,
I have deployed a WCF service to SharePoint and on my own machine everything works fine. Navigating to the .svc works and, as expected, navigating to service.svc/Operation generates a "method not allowed message". Posting to the service using jQuery also works perfectly on my own machine.
However, when my colleague gets the lat...
I was reading the Spring 3.0 Documentation and Blog Posts (followups) on how to create REST style services with Spring MVC but I can't find any working example on how to use the ContentNegotiatingViewResolver. I have a test controller like this
@Controller
public class IndexController implements Serializable
{
@RequestMapping("/inde...
Hello everybody,
I am currently working on a WCF application that consumes a Rails REST Service. The problem is when I do a update or remove request, Rails does not return XML, only the following header:
HTTP/1.1 200 OK
Date: Wed, 13 Jan 2010 13:56:25 GMT
Server: Apache/2.2.14 (Debian)
X-Powered-By: Phusion Passenger (mod_rails/mod_rac...