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

  • SEARCH
  • Home
  • 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 7511297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:30:32+00:00 2026-05-29T23:30:32+00:00

I am trying to call an external Web service via JQuery Ajax in the

  • 0

I am trying to call an external Web service via JQuery Ajax in the following format

$.ajax({
          url: "<web-service URL>",
          cache: false,
          success: function(html){
          alert( "Called");
                  }
            });

But it throws a 404 error saying page not found.

I modified the Ajax call by replacing the URL with the following

$.ajax({
          url: "http://www.google.com",
          cache: false,
          success: function(html){
          alert( "Called");
                  }
            });

But i still got the 404 Error, with the URL String looking something like this

http://localhost:8081/Application/root/www.google.com?_=1329471109853"

Unable to understand as to why is it appending the google.com URL to the localhost

Can anybody tell me what am i doing wrong , all i want to do is to call an external webservice URL in the background.

  • 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-29T23:30:33+00:00Added an answer on May 29, 2026 at 11:30 pm

    You need to read about the same-origin-policy. You can only make ajax calls to the same host that the page you are on came from. There are a few ways to work around this (like using JSONP), but you will have to code for and accept the limitations of those work-arounds.

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

Sidebar

Related Questions

I am trying to call external web service, its work fine in chrome, but
I'm trying to call to external PHP script using Ajax like this: $(function() {
Trying to call a SAP SOAP Web Service from a generated sudzc app shows
I trying to call 2 functions in the same page to submit jquery-ajax at
I'm trying to learn to call SharePoint Web Services from an external C# client.
I'm trying to call an external Delphi function from C# which takes a Delphi
I am trying to call a web service from a BizTalk (2006) orchestration. Having
I'm trying to call a web service in my back end java code when
Has anyone seen this error when trying to call an external C function from
I'm trying to call a jQuery popup window function from within an iframe. In

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.