0
votes
0answers
27 views
XMLHttpRequest responseXML is always null
I am calling a asmx web service like this
var xmlhttp;
if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XMLHttpRequest();
}
else {// code ...
2
votes
2answers
36 views
web service returning xml although return format is json
Here is the web service
public class HelloWorld : System.Web.Services.WebService
{
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public string Hello()
{
...
0
votes
5answers
42 views
Not geting expected data from jquery ajax call
Here is the c# web method
[WebMethod]
public string Hello()
{
return "Hello World";
}
Here is the jquery ajax code
$.ajax({
url: ...
0
votes
1answer
28 views
How to pass data to browser javascript from Spring MVC controller
I would like to pass data from Spring MVC to javascript but I am not sure what is the best way to do it.
Say, in javascript, there an array
var myArray = new Array();
In backend java, there is an ...
1
vote
3answers
95 views
+100
Asp.net Webservice - Secure call the webservice with jquery AJAX
I want to use the webservices with Ajax. What is the best way for the security when calling webservice using ajax? I want to protect against remote call out of the application.
I have the following ...
0
votes
2answers
25 views
Checking jquery `success` method parameter issues
I want to console.log the values of jquery ajax success method.
$.ajax({
type: "post",
url: '/CalculateTime.asmx/GetServerTime',
data: "{}",
contentType: "application/json; ...
0
votes
0answers
20 views
Remotely Calling WebService via Ajax (ASP.NET)
CLIENT - AJAX
$.ajax({
type: "POST",
url: 'http://www.site.com/Service.asmx/Method',
data: "{ 'user': 'sampleuser', 'pass': '123456' }",
contentType: ...
0
votes
0answers
33 views
How to get JSON reponse while POST of file data
I am posting file data (image file) through AJAX and ASP.Net web services. I need to get JSON response like this: ({"d":"null"}), but I am getting XML response, like this:
<?xml version="1.0" ...
0
votes
1answer
49 views
How to call asp.net web services using ajax from cross domain
i am developing mobile application using javascript,html,css(cross platform technology),i have written a web services using asp .net, i want to fetch the data from web services and display into client ...
0
votes
2answers
98 views
consuming asp.net webservice using jquery [closed]
I am trying to consume asp.net WebService
(http://www.w3schools.com/webservices/tempconvert.asmx) every time
returns in error
my code :
$(document).ready(function(){
var un="123";
...
0
votes
2answers
19 views
Unable to show json responce in jscript
I am developing mobile application using Javascript, HTML and CSS. I have to use web services in that app. I am doing a sample demo to see how consume the web service in javascript. I have an url ...
0
votes
0answers
15 views
Common authorization for web application and service
I have a web appliaction using ajax (angularjs) to retrieve all necessary data to render the page from a REST service. The service is secured using spring security/apache shiro so no problems there.
...
0
votes
5answers
54 views
Passing data to a json/php web-service
I am trying to pass some data to a web-service using JQuery. Here is a simple client:
<script type="text/javascript">
$(function () {
$.ajax({
type: "POST",
...
1
vote
1answer
78 views
WebService: Object reference not set to an instance of an object
In my Project I am having a WebService for generating a list, when I run the WebService I get the NullReference Exception in the ** ...
0
votes
0answers
19 views
Am I using the wrong approach with .ashx and .aspx
I am using asp.net and I have pages with comments, ratings, number of ratings etc. To get that information I would use jquery ajax and call an ashx handler this handler would use a switch statement ...