jquery - cannot get the web service response -


I definitely make a very lame mistake but can not find that ...

Here's my web method [WebMethod] [ScriptMethod (UseHttpGet = true, ResponseFormat = ResponseFormat.Json)] Add public int (int x, int y) {return x + y; }

and calling it through AJAX like this

  $ .ajax ({type: "GET", datatype: 'Jason', Content type: "Application / Jason; Character symbol = UTF-8", Data: {x: 4, y: 5}, URL: 'http: // localhost: 14436 / service 1. command / add', success: function ( Data) {warning ('success'); var d = $ (data); console.log (d);}});   

The problem is that I can not display the returned data in Fideller in success ,

{"d" : 9} but I'm dropping data ... what I'm doing wrong here ... TIA  Enter image details here

Edit

My web service and my web application is where From the web service

so I think it requests a cross domain?

Try the following function:

  function Ajax succeeded (result ) {Warning (Results D); }   

Still no results?
Update:
You You can read more about the D cover:

This is the sample you are trying to get:


Comments