0
votes
1answer
36 views

Jquery AJAX calls to NLB (Network load balancer) and cross domain scripting issue

We have a simple dashboard application that makes Jquery AJAX calls to RESTFUL WCF service (whose endpoints are exposed using webHttpBinding). Things work as expected as long as UI application and ...
1
vote
1answer
27 views

ServiceStack: is really “Simple and Elegant Design”?

everyone! I've recently tried to use ServiceStack framework and bumped into the following unclearance. Can I or I can not do the following with that library: public class userService : Service { ...
25
votes
5answers
19k views

What MIME type if JSON is being returned by a REST API?

My REST API returns JSON. I'm currently returning text/plain as the MIME type, but it feels funny. Should I be returning application/x-javascript or some other type? The second question is with ...
0
votes
2answers
9 views

XMLHttpRequest Exception 101 when i try to call POST rest with jquery

i'm using jquery ,jersey and json. when i try to call a post service i receive this error Origin null is not allowed by Access-Control-Allow-Origin. undefined * Error: NETWORK_ERR: XMLHttpRequest ...
-1
votes
0answers
10 views

Linking my HTML page with my node.js server and MongoDB

I've been working on a very basic commenting system with a NoSQL database. I am utilizing Node.js with a RESTful API linked in. With Mongoose I can connect this to my mongodb database, and through the ...
0
votes
0answers
15 views

Http post works with beans and command line but fails with js

I am making a Javascript http POST json query to a .WAR application. I have used both JSONRequest.post and XMLHttp utilities, but I continue receiving an error that the method i use isn't POST. Is ...
0
votes
1answer
26 views

How to validate request parameter if it is not a bean in spring MVC?

Below is a POST end point in my spring MVC REST service. I want to use spring validation frame work to make sure that list I receive is not empty. How do I do it? Do I have to provide wrapper bean to ...
1
vote
0answers
18 views

Construct request body for restful webservice w/JSON

A few things: -Apologies if someone has asked something similar - I didn't see one. -I hope I have worded the question correctly, I gave it my best shot. I am new with WCF, and I have written a ...
2
votes
1answer
4k views

How to Consume JSON as input in PUT and POST method of REST webservice in java

I am trying to create a REST web service using JAX-RS. In that, I have PUT method or POST method which consumes the json as mediatype in the REST web service. Can I know how to call these methods from ...
2
votes
2answers
47 views

Parsing JSON responses

Im using the python module 'requests' to send a RESTful GET to a server. For which I get a response of a JSON response. The JSON response is basically just a list of lists. Whats the best way to get ...
0
votes
0answers
20 views

How configure rest service and rest client to serialize java.util.Date when date is value in the Map<String,Object>

I am using Jersey rest service. My resource object takes a Object as shown below as post parameter. From the client side I am setting key values pair in properties field of my input object. One of the ...
0
votes
2answers
27 views

System.Net.WebException : The remote server returned an error: (415) UNSUPPORTED MEDIA TYPE

I am having problems with a bit of code that accesses a restful web service. Running this code, it errors out at var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse(); and the exception ...
44
votes
5answers
26k views

REST API - why use PUT DELETE POST GET?

So -i was looking through some articles on creating REST API's. And some of them suggest using all types of HTTP requests: like PUT DELETE POST GET. So - we would create for example index.php and ...
0
votes
0answers
9 views

WCF REST JSON collection null with Twitter

I'm issuing the friends/ids call like so: GET /1.1/friends/ids.json?screen_name=blablabla HTTP/1.1 A valid response is issued: ...
0
votes
1answer
58 views

Getting Json Output from Byte Array

I just started a new project on WCF and to be honest I'm very new at this with limited knowledge. So what I'm trying to do is open a file that is stored in my computer (e.g. word, pdf, etc.) and ...

1 2 3 4 5 87
15 30 50 per page