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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:46:36+00:00 2026-06-15T16:46:36+00:00

I am calling the web service from other domain using Ajax call and I

  • 0

I am calling the web service from other domain using Ajax call and I want to get returned response from server in my application by using following code I get response text in firebug but not in my JavaScript code. Control are not showing success and error response it goes out directly.

I want response in my success or error section but both not handling in this.
I am trying lot but not finding any solution please any one help me.
I am in a trouble. I hope somebody can help me for calling cross domain web service by using Ajax call. I am trying from 1 week but didn’t find any solution till. I am getting response on browser but not getting it on my actual code.
My JavaScript code.

    crossdomain.async_load_javascript(jquery_path, function () {
              $(function () {
                  crossdomain.ajax({
                      type: "GET",
                     url: "http://192.168.15.188/Service/Service.svc/GetMachineInfo?serialNumber="+123,                
                      success: function (txt) {
                          $('#responseget').html(txt);
                          alert("hii get");
                      }
                  });

                  crossdomain.ajax({
                      type: "POST",
                      url: "http://192.168.15.188/Server/Service.svc/GetEvents/",
                     // data: "origin=" + escape(origin),
                      success: function (txt) {
                          $('#responsepost').html(txt);
                          alert("hii post");
                      }
                  });
              });
          });
        </script>
  • 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-15T16:46:37+00:00Added an answer on June 15, 2026 at 4:46 pm

    You can’t simply ignore the Same Origin Policy.

    There are only three solutions to fetch an answer from a web-service coming from another domain :

    • do it server-side (on your server)
    • let the browser think it comes from the same domain by using a proxy on your server
    • change the web service server, by making it JSONP or (much cleaner today) by adding CORS headers
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to retrieve product information from magento by calling its web service using
I am investigating a problem calling a web service from AJAX, which intermittently faults
I have some problem with calling web service from flex. I have service with
I'm calling a web service from a console app - all in C# on
My app is calling a web service to retrieve some data, and I want
For a new project, we want to build a web service in Java using
I am trying to call a SharePoint web service from Acrobat JavaScript, and I
I'm trying to create a simple AJAX & web service test (using C# .Net
I am building an ASP.Net web application and want to access data from MongoDB
'Hi I am calling a web service from javascript/jquery as follows: function Test(userid) {

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.