Hi i am developing a restful webservice in wcf. i have created a method in service file which takes a vuser(entity class) and process it and register that the user. The requirement is to send the vuser in xml format to the creatuser method. my question is how do i send the vuser to test my method in the xml format to the uri.Please help ...
Are there any existing frameworks or examples of dynamic documentation for RESTful web services in ASP.Net MVC?
I've got a bunch of web services in an ASP.Net MVC project that I want to document. For each service, I'd like to show the allowed verbs, a url template, example request and response messages. It would be really nice if the ...
I've been using struts2 + the rest plugin successfully to create a simple rest api web service. I'd like to make that service accessible to Flash and Silverlight clients, which means I need to add a crossdomain.xml access file at the root of my webapp. Normally I would just copy a crossdomain.xml file into the root of my webapp and ser...
Hello,
I want to ask this question because the php documentation doesn't mention it
How would one put xml data and binary data together?
$imagecontent = @file_get_contents($imagelocation);
$xmldata ="<xml></xml>";
$headers = array("MIME-version: 1.0");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($ch, CURLOPT_HTTPHEADER,...
Hi Guys,
I'm having a really hard time getting my head around using REST-style URLS. Can I get a little help with this? Right now I have a query string like so:
example.com/calendar_expanded?date=1270094400
I have a mod rewrite that's hiding the .php extension. How do I
Make this calendar_expanded/date/1270094400 happen.
$_GET t...
I'm using Jersy and want to output the following JSON with only the fields listed:
[
{
"name": "Holidays",
"value": "http://www.google.com/calendar/feeds/usa__en%40holiday.calendar.google.com/public/basic"
},
{
"name": "Personal",
"value": "http://www.google.com/calendar/feeds/myprivatefeed/basic"
...
Hi,
Imagine a table view listing some recipes. Each time the user taps on a recipe a new table view is loaded listing receipe ingredients.
To get the information, I'm asynchronous calling a REST API using:
NSURLRequest *request = [NSURLRequest requestWithURL:url
cachePolicy:NSURLRequestReloadIgnor...
Hi all,
I just made a web service with spring 3 using MVC annotations (@Controller, @RequestMapping) and now I'm looking for a way to secure it.
Does someone know how to do it?
Thanks,
...
With Ruby on Rails, REST is a great concept in terms of simplifying things for the developer and making resources easy for machines to access, but it also produces phenomenally ugly URLs for humans.
For example, using the popular RESTful Authentication plugin to handle user login and authentication, it creates two controllers for authen...
Hi,
This is a general question about how limiting are web development frameworks such as Django and ruby-on-rails.
I am planning on building a RESTful web service which will have a purely JSON/XML interface, no GUI. The service will rely on a database however for a few of the more important operations there is no clear way of persistin...
There seem to be two distinct ways to implement conditional requests using HTTP headers, both of which can be used for caching, range requests, concurrency control etc...:
If-Unmodified-Since and If-Modified-Since, where the client sends a timestamp of the resource.
If-Modified and If-None-Modified, where the client sends an ETag repre...
I am developing an API for a web application. Desktop clients will interact with the API using simple HTTP posts (REST). I will be using SSL, there is no question about that. My question is this: should I also be encrypting the data before it is sent over SSL? The information being sent may contain confidential information. Is SSL enough...
Thanks to everyone who has helped me with my clean URL quest. I'm almost there but want to lick this last thing.
.htaccess
RewriteEngine on
#REMOVE THIS LINE ON SITE LAUNCH!
RewriteBase /~accountName/
#Hide .php extensions for cleaner URLS
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ ...
I am now going to develop a mobile website both support common html format page and wml format page(Because now a usual web browser on mobile can view html page and some old mobiles only support wml )
First step:
register content type for wml page
config/initializers/mime_types.rb
Mime::Type.register_alias "text/vnd.wap.wml", :wml
Sec...
I have a google app engine project and i want to make my REST API available to third parties. Like twitter API.
Twitter requests the user and password to be sent so thet they can be authorized - can i do this with google user accounts?
I have read somewhere on this site this is not a prefered method as their credentials are entered in...
Follow up question to this post
Fow now I have a slight idea about difference of SOAP and RESTful.
My question is when to use SOAP and when to use RESTful, which one is "better" looking at performance/speed or request handling?
I'm implementing for the first time RESTful in java and I wanna know more about it, I've dealt with SOAP be...
To get a search website built quickly I plan to split the work between two teams: One to build the search engine and one to build web UIs (mobile/desktop). My plan is to build the search engine as a set of REST services based on .NET 3.5. UIs may be built using some other technology.
Questions: is the REST interface likely to be a perfo...
I've gone through the firstResource bit of the Restlet 1.1 tutorial and put together a web service that handles GET, POST, DELETE, PUT by subclassing the Resource class and overriding the appropriate methods and using a Router to attach the subclassed Resource classes.
So I'm left thinking - what's the point of a Restlet?
I can attac...
Hello!
I'm playing around with an install of HBase cluster, and am trying to access the data via the Stargate REST interface. Most of the read-only functions (i.e. listing tables, getting version, meta data, etc) are work nicely. However, I'm having trouble with actually inserting data into any tables I've created. Here's what I've g...
I have a RESTful WCF service that can return XML, JSON, or JSONP, depending on the arguments, e.g. /service.svc/stuff?format=xml or service.svc/stuff?format=json&callback=myCallback. To do this, I've created a custom Behavior, MethodEncoder and MethodEncoderFactory which handle wrapping the JSONP callback and chooses the writer based on ...