Quantcast








     

make a RESTful JSON request

stackoverflow.com - 2012-03-20 22:35:17 - Similar - Report/Block

What does it mean make a RESTful JSON request. Here the context of the phrase: Backbone.sync is the function that Backbone calls every time it attempts to read or save a model to the server. By default, it uses (jQuery/Zepto).ajax to make a RESTful JSON request.

Trouble sending https POST request to server via restful API, getting "HTTPS Required"

stackoverflow.com - 2013-04-16 11:32:24 - Similar - Report/Block

In the app I'm building, I need to send a secure POST request to a RESTful API. Specifying the request as below: NSMutableURLRequest *urlRequest=[NSMutableURLRequest requestWithURL: [NSURL URLWithString: @"https://testserver.test:443/userinfo"] cachePolicy:NSURLRequestUseProtocolCache Policy timeoutInterval:60.0]; [urlRequest setValue:...

AJAX call doesnt work with RESTful web service?

stackoverflow.com - 2013-02-18 12:00:20 - Similar - Report/Block

Hi I have a simple restful service that returns a json. I want to make an Ajax call to get required json. When I try with firefox's RestClient there is no problem. Service returns the json and I can see the json on rest client. But when I use ajax call I fail. Actually console shows 200 ok, but error function works after call. I searched...

Response issue with RESTful API using OpenRasta

stackoverflow.com - 2012-03-07 14:26:57 - Similar - Report/Block

I am implementing RESTful API using OpenRasta.I am sending a ajax request in the following manner. $.ajax("login", { type: "post", data: JSON.stringify(authData), success: function (data, textStatus, jqXHR) { }, error: function (jqXHR, textStatus, errorThrown) { },...

Spring REST API Documentation using Swagger

stackoverflow.com - 2012-02-08 06:49:27 - Similar - Report/Block

I am looking for a tool which could help me generate RESTful API documentation. My server is written in Java and uses Spring MVC framework. I do not have VIEWS in my server. It's a 100% RESTful service and all it does is consumes JSON and spits out JSON. I was wondering if Swagger is compatible with Spring annotations?...

RESTful architecture, Spring vs J2EE

stackoverflow.com - 2012-02-23 12:55:39 - Similar - Report/Block

I am trying to come to a decision on a architecture solution for some new projects that I am building. These projects need to be multiplatform, mobile, tablet, desktop, etc. So therefore the reason to choose a RESTful api(json) for the backend/server. I have been working on J2EE for long time, so expirmenting with Spring and Java EE 6 at...

Read in depth with JSON for java

stackoverflow.com - 2012-06-30 22:09:31 - Similar - Report/Block

I am trying to read results of a JSON request into java, yet The partial output of my JSON request looks like this : "route_summary": { "total_distance": 740, "total_time": 86, "start_point": "Marienstraße", "end_point": "Feldbergstraße" } I would like to use the standard json library to extract the values in total_distance. However...

Obtaining A Session ID RESTful Web Services Not Using A Servlet

java-forums.org - 2013-06-09 17:12:37 - Similar - Report/Block

EDIT So i have finally resolved my problem all I did was add @Context private HttpServletRequest request; which allowed me to call return request.getSession().getId(); within my RESTful web service. So im developing some code that allows a user to upload a file using apache tomcat. I have the upload portion working correctly but what I...

MooTools JSONP request not works with invalid password

stackoverflow.com - 2010-01-09 16:49:01 - Similar - Report/Block

I make a JSONP request using MooTools: var username = 'hsz'; var password = 'pass'; var req = new Request.JSONP({ url: 'http://api.blip.pl/profile.json', method: 'get', headers: { 'Authorization' : 'Basic ' + Base64.encode(username + ':' + password), 'Accept' : 'application/json', 'Content-Type' : 'application/json', 'X-blip-api' :...

ExtJS cannot decode JSON message

stackoverflow.com - 2012-04-02 13:19:09 - Similar - Report/Block

I'm using ExtJS to make an Ajax request to server-side, and then I would like to parse the JSON response and do something with it. The problem is the i can't decode the response text: Ext.Ajax.request({ url: 'Applications/GetFarmCounters.aspx', params: { farm: 'test',...

Jquery AJAX (json) cross domain request and ASP.NET MVC

stackoverflow.com - 2011-05-11 20:12:16 - Similar - Report/Block

Seemed to me to be a beaten theme, but i couldn't find the answer. =( I make jquery ajax requst to localhost:666 from localhost:555 application $.ajax({ url: "http://localhost:666/request", dataType: 'json', timeout: 5000, success:... i've got in chrome: XMLHttpRequest cannot load http://localhost:666/request . Origin http://localhos...

create the object of json and pass data to the server using the VBScipt

stackoverflow.com - 2012-02-26 18:02:50 - Similar - Report/Block

I am beginner to develop that find of the webservice so please help to solve my problem I need to create the one VBS(VBScript) file in that the how to create the json string and that the json object pass to the java restful webservice below is the my code but it's not a json form so please help to create the json form of a object surl="ht...

evolveStar Join

jQuery Ajax Request to get JSON data fires error event

stackoverflow.com - 2013-03-05 11:39:09 - Similar - Report/Block

I'm trying to make an ajax request to a Google API, to get JSON data of current exchange rate. My code so far: $.ajax({ url: "http://www.google.com/ig/calculator?hl= de&q=1USD=?EUR" }).done( function ( data ) { var obj = $.parseJSON( data ) alert( data.rhs ); }); The link for the google api is http://www.google.com/ig/calculator?hl=d e&q...

How to add URL parameters to JSON web service call - Objective C

stackoverflow.com - 2012-02-23 17:21:44 - Similar - Report/Block

I'm trying to fetch information from a JSON web service with this code, using SBJsonParser API: SBJsonParser *parser = [[SBJsonParser alloc] init]; // Prepare URL request to download statuses from Twitter NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://twitter.com/statu ses/public_timeline.json"]]; // Pe...

Parse JSON in Objective C

stackoverflow.com - 2013-04-20 11:02:15 - Similar - Report/Block

I have this json returned from a cms and I need to break it apart and use the different values. {"nodes": [{"node": {"created":"14012013165204","lastupdated ":"03042013133901","type":"News"} }] I use JSONKit framework and here is my code: NSString* theURL = [NSString stringWithFormat:@"http://testserver.com /content_lastupdate.json"];...

Getting and using remote JSON data

stackoverflow.com - 2011-04-01 22:28:44 - Similar - Report/Block

I'm working on a little app and using GWT to build it. I just tried making a request to a remote server which will return a response as JSON. I've tried using the overlay types concept but I couldn't get it working. I've been changing the code around so its a bit off from where the Google GWT tutorials left. JavaScriptObject json; public...

Creating a hidden product

stackoverflow.com - 2013-04-25 23:18:14 - Similar - Report/Block

I am trying to POST the contents of request.json to /admin/products.json , but Shopify replies with the contents of response.json As you can see in request.json , I have specified " published_at " to be null in attempt to make the product "hidden", but then Shopify is overriding that value with a generated timestamp as in response.json...

Fiddler - ReadResponse failed: The server did not return a response for this request

stackoverflow.com - 2012-02-24 05:14:14 - Similar - Report/Block

This was the first time I encountered this kind of error after dealing with RESTful web service in couple of times. I find it hard to trace the cause of error, hope you could help me. I have this attribute for Login service [WebGet(UriTemplate = "Login?username={username}&password= {password}&ip={ip}", ResponseFormat = WebMessage...

Parsing JSON error

stackoverflow.com - 2012-03-14 05:05:49 - Similar - Report/Block

I am parsing JSON returned by Facebooks Graph request. I create an NSMutableArray called json to hold the results of the request, which returns information in JSON format. I then try to add the information parsed to a table. To do this, I create an NSDictionary using: NSDictionary *dict = [self.json objectAtIndex:0]; However, I get the er...

How to access jsonp data using Ext.util.JSONP.request

stackoverflow.com - 2012-03-07 06:09:22 - Similar - Report/Block

I am very new to sencha touch application, i've been tasked to get the json data from a cross domain and data looks like below { "data": { "error": [ {"msg": "Free API has moved to free.worldweatheronline.com\/feed\/weath er.ashx url. Please make changes at your end. Please contact support team at info@worldweatheronline.com for any o...

Post web request to xml file

stackoverflow.com - 2012-03-23 20:01:07 - Similar - Report/Block

I have a vendor that has supplied me with info I need to code in order to receive information from them. I need to send a POST request out to a URL ending in .xml. The documentation gives a JSON format and returns a response in XML. I'm a C# programmer and am not familiar with this yet. What type of request is this and how can I find an e...

Javascript JSON return error with unescaped character

stackoverflow.com - 2012-05-09 14:45:38 - Similar - Report/Block

Hello and thank you for the time you are taking to look at this. The problem I am having is with a JSON return from a third party service so I have no control over how the JSON is formatted. I am using the following (stripped down to the important pieces) function JSONgrabber(Zip,iplocation) { var requestBase ="http://www.someCompany.co...

Using json with Play 2

stackoverflow.com - 2012-05-06 16:12:29 - Similar - Report/Block

I'm trying to create a simple application that allows me to create, read, update and delete various users. I have a basic UI-based view, controller and model that work, but wanted to be more advanced than this and provide a RESTful json interface. However, despite reading everything I can find in the Play 2 documentation, the Play 2 Googl...

RestFul Web API return issue

stackoverflow.com - 2013-03-01 10:03:17 - Similar - Report/Block

@GET @Produces("application/json") public Site getSite() { return (Site)siteFacade.find(Integer.parseInt(i d)); return Response.status(204).type("text/plain") .entity("Invalid Request!").build(); I am trying to return "Invalid Request" message if Site==NULL but there is error in return Response due to method. public Site getSite() Can a...

Ajax json POST and Spring MVC Controller

stackoverflow.com - 2012-07-06 13:56:30 - Similar - Report/Block

I have ajax json POST method like this $.ajax({ type: 'POST', url: "/webeditor/spring/json/", data: JSON.stringify(contents), dataType: "json" and Java Controller for obtain POST request: JSONPObject json; BindingResult result = new BeanPropertyBindingResult( json , "MyPresentation" ); @RequestMapping(value="/webeditor/spring /json/",...

yesod - getting the request body for a POST "Content-type: application/json"

stackoverflow.com - 2011-04-24 03:36:27 - Similar - Report/Block

Using yesod 0.8.0, I'm trying to retrieve the body of a post message from this example request: curl -v -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d '{"name":"oscar"}' http://localhost:3000/user/xyz in my handler the only way I see it is to use (pp, files) <- runRequestBody But this fails because of the...

How do I send JSON data to Django app via Python urllib?

stackoverflow.com - 2012-05-18 16:13:31 - Similar - Report/Block

I am trying to send JSON data to my django web app using python urllib but with no luck. This is my code; Python application: url = "http://127.0.0.1:8000/web_app" values = {'name':'Paul','age':12} jdata = {'data':values} data = urllib.urlencode(values) req = urllib2.Request(url, data, {'Content-Type':'application/json'}) resp = urllib2.

Django load local json file

stackoverflow.com - 2012-05-08 14:04:25 - Similar - Report/Block

I have an ajax view: def ajax_prices(request): data = {'data':'data'} return HttpResponse(json.dumps(data), mimetype='application/json') I want to test this with a local json file (prices.json). How can I import a local json file? Local json file 'prices.json' {"aaData": [ [1, "70.1700", "2008-12-29 11:23:00"], [2, "70.2600", "2008-12-2...

Can spring MVC parse JSON into @RequestParams

stackoverflow.com - 2013-02-07 08:39:13 - Similar - Report/Block

Is it possible to use the annotation @RequestParam to parse json formatted data from a request just like it is possible to parse application/x-www-form-urlencoded encoded data? I.e. if my request body is: { firstName : "John", lastName : "Doe" } I would like to be able to have a method looking like public void savePerson(@RequestParam S...

HttpRequest Body parameters in iOS

stackoverflow.com - 2013-04-09 10:02:00 - Similar - Report/Block

I am using web service for my iOS app. I know how to send http post request via URL (not http Body) and get response using NSURLConnection Delegate. But now there is better approach which I am following for web service and passing parameters in request body. I looked for library on google and found this But the code is bit difficult for m...

Converting NSArray -> JSON -> NSData -> PHP server -> JSON representation

stackoverflow.com - 2012-04-24 03:51:24 - Similar - Report/Block

I am converting an Array of NSDictionaries to JSON data with the following... Create my data... NSMutableArray *arrayOfDicts = [[NSMutableArray alloc] init]; for (int i = 0; i < 2; i++) { NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys: @"MySong", @"title", @"MyArtist", @"artist", nil]; [arrayOfDicts addObject:dict...

User authorization on a rest service via an access token

stackoverflow.com - 2013-04-20 04:02:49 - Similar - Report/Block

I have a mobile application (HTML 5, JavaScript) and a Restful service (Java, Jersey) to cater the mobile application. Mobile application sign in is handled via a Facebook (Sign in using Facebook account). And currently there is no any security mechanism integrated for the Restful service So my question is, can I authorize users on the Re...

parse JSON in objectiveC (SBJSON) objects and arrays

stackoverflow.com - 2012-03-21 06:23:43 - Similar - Report/Block

So far I've discovered in JSON that everything enclosed in { } are objects (objC : NSDictionary) and anything enclosed in [ ] is an array (objC : NSArray). I've read and re-read this article about the subject> How to parse JSON into Objective C - SBJSON I have a .json file with the data modeled like this: http://elbee101.com/dummySchedule...

Using a JSON service as a Rails model

stackoverflow.com - 2012-08-03 01:44:51 - Similar - Report/Block

How can I use a JSON service as a model for a Rails 3.2 application? I would like to use methods such as create to trigger a JSON request and decode the JSON response into a model object. What is the preferred way to build this type of functionality? One option that I am looking at is to create a custom DataMapper adapter. Any advice is...

why arent event rendering in fullcalendar under FF11+ and IE8+

stackoverflow.com - 2012-03-30 22:39:56 - Similar - Report/Block

I've got fullcalendar set to query a db and return json with just a title, and start date, and this renders just fine in Chrome. However, under IE8,9, and FF11,12, I dont see any events. I even tried to dummy up the data and manually import it to make sure it wasnt my php. ec2-23-20-230-58.compute-1.amazonaws.com /default.html ^^^^ This pa...

error in json in corona lua

stackoverflow.com - 2012-05-03 11:55:33 - Similar - Report/Block

hi i have found a tutorial on how to use post json in lua. here is the code : http = require("socket.http") crypto = require("crypto") ltn12 = require("ltn12") url = require("socket.url") local json = require("json") local commands_json = ["message"] = "Hello", print (commands_json) local json = {} json.api_key = "6_192116334" json.ver =...

Android Twitter String to Json Array

stackoverflow.com - 2012-03-11 14:54:47 - Similar - Report/Block

I have a URL for a twitter feed and I have created a string from it and I want to put it in a JSONArray so I can call back the individual items. In this case - "text". Here's the json Here's my code try { // Create a new HTTP Client DefaultHttpClient defaultClient = new DefaultHttpClient(); // Setup the get request HttpGet htt...

Is it possible to parse json and insert into db inside the onPostExecute() asyncTask?

stackoverflow.com - 2013-04-11 14:18:24 - Similar - Report/Block

I am sending the request and getting the response as json. So i am trying to do parse json data and insert into sqlite db inside the onPostExcute() method . But json data is not inserted into db. Is it possible or not? If possible then how? please help me guys...

Request is sent until timeout

stackoverflow.com - 2013-04-24 15:09:38 - Similar - Report/Block

I am working on a facebook app and I am trying to send some requests, but one particularly seems to create problems: under the NET panel of FireBug, I can see that the request is sent again and again until timeout. What I am trying to do is: when the user clicks a button, a function from a PHP file should be called. save.php (from where...

RESTful Web Services - La Guida

html.it - 2011-12-28 13:00:00 - Similar - Report/Block

Dai principi ispiratori del Web programmabile e delle architetture RESTful, alle best practices per la realizzazione servizi Web: API ed esempi pratici - Progettare ed implementare servizi RESTful, dalla definizione al codiceAutore: Andrea ChiarelliCategoria: Programmazione...




dialogShowMessage!

Fill out the form you see below. Registration is free, fast and simple.
If you are already registered, sign in page login.


Web Site :
Required Field
First Name :
Required Field
Last Name :
Required Field
Email :
Required Field
Sex :
Required Field

evolveStar.com is free for ever !


evolveStar.com provides a search engine that allows you to gather information to write their own blog.


evolveStar.com enhances the sources displaying the logo of the site.


If you want to remove your site or you believe a site listed infringes copyright, please report it to: info@evolvestar.com


Specifies the subject copyright violation and the url of the page


evolveStar.com respecting the law DMCA (Digital Millennium Copyright Act) will immediately remove whatever its merits.


Next will be effectual and relevant checks.







Who We Are Advertising Contacts Help & FAQ

© Copyright 2010-2014 Fabrizio Fichera. All rights reserved.