rest

Visual Studio: Add service reference to service in a different project in my solution?

I have a Silverlight app that I want to access Azure storage. I have two projects in my solution: a SL project and a ASP web role. The web role has a service. When I launch the project, I go to the service, and it works fine. (I am able to download the data.) I'm not entirely sure what I can do through "Add Service Reference", but I s...

Silverlight "Add Service Reference" to ASP Service error

I'm not sure what's causing this error. The service markup: <%@ ServiceHost Language="C#" Debug="true" Service="WebRole1.ExpenseService" CodeBehind="ExpenseService.svc.cs" Factory="System.ServiceModel.Activation.WebServiceHostFactory" %> The service code behind: [ServiceContract(Namespace = "")] [AspNetCompat...

How do I implement CRUD access with actions using the same view?

How do I implement CRUD access with actions using the same view? class UserController : Controller { [ActionName("User")] [HttpGet] public ActionResult GetUser() {/* ... */} [ActionName("User")] [HttpPost] public ActionResult PostUser() {/* ... */} } I would like both actions to use the same view. Is there an attr...

How to build WCF REST services with .NET 3.5 and Visual Studio 2010?

I'm about to build some RESTful web services using WCF and .NET 3.5 in VS2010. I've not done this before so am looking for some pointers as to the easiest approach. For deployment reasons I cannot use .NET 4 but must stick with .NET 3.5 SP1. It seems the WCF REST Starter Kit doesn't work with VS 2010 (I'm not certain about this - maybe ...

How to automatically overload DELETE and PUT if they are not available by the client?

How can I detect at the startup of the application that a client doesn't support DELETE and PUT verbs and automatically overload the POST verb? On the server side, how can I redirect those overloaded POST verbs into the right actions? Say I have a DELETE request that is overriden, how do I call the appropriate function in the controller ...

How to Protect a private REST API

I'm currently thinking how I could protect my REST API which is used only by my mobile application from being used by other applications? Could a API-Key be a good solution, because just me know the secret API key. Is there a better solution? ...

Coldfusion REST API returning 'connection failure. status code unavailable.' when called remotely

Now I want to prefix this with I am unsure whether this should be here or on server fault so I'll post it here to begin with. We are developing a REST API in Coldfusion 9 which is being hosted on IIS 7 for a client which on certain calls must call another internal webservice. When making these calls from the server that the API is host...

Are HTTP APIs with (almost) no methods that bad?

Suppose I have an HTTP API with two methods: read and write. So I could do POST url: /api/read body: <method>customers.list</method> <args> <area_code>90210</area_code> </args> POST would be the method for both read and write. I know it's not RESTful, but I can update it on the fly on the server side without having to change the cli...

JIRA Rest Service with Bandana Manager

I have a JIRA plugin that I'm developing that has a REST service. That service should be able to accept POSTed requests, unmarshall some data and store it. The seemingly suggested way to do this in JIRA is to make use of the Bandana persistence framework. According to this page, I should be able to simply define a setter that Spring shou...

Testing RESTful services which is better?

We have bunch of WebServices to test and am looking for automating them which scripting is better and easy way( with SSL support) 1) Groovy - HTTP builder 2) 2)Perl - Which module to use ? 3) Python -urllib ? 4) SOAPUI - I'm already using this for SOAP/HTTP services and happy with this, however, I didn't get WADL file to...

How do I run system wide operations on a cluster of app-servers?

I am running my application on a group of unclustered tomcat servers. It serves restlet web-services. As per restful paradigm, each call is stateless. In this environment, I want the application to periodically review the database for status changes and take action. Since one of the actions is to fire off an email, I want to ensure t...

Restful Rails Edit vs Update

I was trying to redirect to a different page after editing an entry, I assumed that it was using the update code because you are updating the database. It took me some time to realise that I was using the wrong action in the controller. Can someone please explain how edit and update work. Why are there two different actions? what are t...

HTTP request from Adobe InDesign script?

I add a button in Adobe InDesign with an action to perform request xml from restful webservice, but I couldn't find any objects like XMLHttpRequest or ActiveXObject. I don't know there is any object in sdk that lets me do that job? ...

RESTful call in Java

Hi, everyone, I am going to make a RESTful call in Java. However, I don't know how to make the call. Do I need to use the URLConnection or others? Can anyone help me. thank you. ...

asp.net MVC authentican for iphone and blackberry app

I am working on an asp.net mvc rest webservice for traffic updates. This web-service will provide information for an iphone and blackberry application. Users need to log in to store things like their favorite routes and to create new routes. What type of authentication should be used? I am thinking of basic authentication where i give...

Could HTTP Headers be bound to REST WCF service arguments?

I have a WCF REST Service: [ServiceContract] public IService { [WebGet] [OperationContract] Data GetData(UserInfo userInfo); } UserInfo is a class: public class UserInfo { public string UserName { get; set; } public string Password { get; set; } } I want UserName and Password properties be filled from specific H...

Restful JSON API only or XML API too?

I'm going to create a restful api in Json to provide data to my customers. I really prefer json over xml. All my coding is done in json. I wonder, is it sufficient to just provide json api and tell the customers through the homepage that json rocks over xml and we only use json, or are there a lot of customers that just prefer xml and ...

Catching a WebFaultException's details in WCF Rest.

Hey, I have a server which is throwing WebFaultException try { ... } catch (InvalidPasswordException) { throw new WebFaultException<String> ("This is a bad password", HttpStatusCo...

How to use the Apache HttpClient to make a RESTful call?

Hi, everyone, I want to ask a question about the Apache HttpClient and RESTful call. I want to use the Apache HttpClient to make a RESTful call. But I don't know how to use it. Can anyone help me? Thank you very much. ...

Rest API for bugzilla

Hi, We are setting up bugzilla for issue tracking within our startup. I want to know if Bugzilla supports REST based API's for filing/searching bugs. Any pointers would be greatly appreciated. Thanks ...