Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7978871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:36:37+00:00 2026-06-04T09:36:37+00:00

I have to get a Json object from a web service and I haven´t

  • 0

I have to get a Json object from a web service and I haven´t find any documentation about it. I have to
post an sql sentence to get it. Anyone knows if all this is posible?

ok thanks for your answers.
At the first the web service has a GetJsonString “metod”.
Im trying this code:

$(document).ready(function () {
$.ajax({
    type: 'Get',
    url: 'http:********************************.asmx?op=GetJSONString',
    success: function(returnedJson) {
        alert(returnedJson)
    }
    });

});

and I get this error:

XMLHttpRequest cannot load http:/***********asmx?op=GetJSONString. Origin null is not allowed by Access-Control-Allow-Origin.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T09:36:38+00:00Added an answer on June 4, 2026 at 9:36 am

    You can send your SQL as a parameter of the POST request like

    $.ajax({
        type: 'POST',
        url: "http://www....",
        method: "serverCallback",
        data: "SELECT ....",
        success: success,
        dataType: dataType
     });
    

    process it with a RPC (remote process call), pack your results in json
    and the success callback will get it back as a parameter. The downside is
    it is very dangerous sending raw SQL queries from your web application,
    it is an easy target for SQL Injection attacks.

    So it would be better if you can send a parameter that will define which SQL
    query will be executed in the database instead of sending the query itself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web service and I'm trying to get data by JSON. if
I have a JSON which I get from web application. I try this parse
I have a manager class, which update json data from web, get values... The
I have a Web Service and it always brings back one object from my
I have a View (created using Backbone.View.extend) and a JSON object, I actually get
Whenever I have a Json string object with a space in it I get
I have a website where an ajax call will get some Json data from
I have a ASP.NET web service decorated with System.Web.Script.Services.ScriptService() so it can return json
On iOS 5, how can I query a web service using a JSON object?
I'm trying to fetch information from a JSON web service with this code, using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.