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 6180307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:49:23+00:00 2026-05-24T00:49:23+00:00

I used $.ajax() to consume a local .asmx webservice. Here’s my code for the

  • 0

I used $.ajax() to consume a local .asmx webservice. Here’s my code for the call:

    $("#btnGetOne").click(function() {
        $.ajax({
            type: 'POST',
            contentType: 'application/json; charset=utf-8',
            url: 'http://localhost:53003/TestWebService.asmx/GetServant',
            data: '{ "servant_id": "' + $("#txtServantID").val() + '" }',
            dataType: 'json',
            success: function(data, textStatus, jqXHR) {
                var jsnData = $.parseJSON(data.d);
                $('#DisplayArea').html(jsnData.Servant_Name);
            },
            error: function(jqXHR, textStatus, errorThrown) {
                alert(textStatus + ' ' + errorThrown);
            }
        });
    });

As you can see the ajax call executes when I click btnGetOne.

As in my question header, this works in jquery-1.4.1, but when I used jquery-1.6.2 I get an errorThrown saying No Transport.

Is there anything else I’m missing?

  • 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-05-24T00:49:24+00:00Added an answer on May 24, 2026 at 12:49 am

    Your HTML+JS page is probably not loaded from localhost:53003, while you are trying to, using Ajax, an URL that is on domain localhost:53003.

    So, it looks like you are trying to make a cross-domain request, which is forbidden — see Same Origin Policy.

    Taking a look a the documentation of jQuery.support, you might want to enable jQuery.support.cors (quoting) :

    cors is equal to true if a browser can create an XMLHttpRequest
    object and if that XMLHttpRequest object has a withCredentials
    property.

    To enable cross-domain requests in environments
    that do not support cors yet but do allow cross-domain XHR requests
    (windows gadget, etc), set $.support.cors = true;.

    And here are a couple of links that might help :

    • jQuery Call to WebService returns “No Transport” error
    • Force jQuery 1.5 to always allow cross-site scripting
    • BB5 – Fix for jQuery.ajax “no transport” error
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have used ajax in the code which works perfectly and give me json
I am getting 500 Internal Server Error when I used ajax call. What is
I got a problem here, when I used ajax to send a form it
I used Ajax POST to update a JSON object but when I tried to
I am doing project in php.I used ajax code to upload the image. It
I am trying to consume a .NET webservice with AJAX and want a JSON
$.ajaxSetup is used for ajax call in jquery. This works perfectly fine if we
I have used Ajax Calendar extender control (from here ) in my asp.net 3.5
I'm trying to call a Webservice that consumes a json object with post method
I use .ajax to call a webservice mehod that sends an email to entered

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.