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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:33:31+00:00 2026-06-02T03:33:31+00:00

I am calling (Ajax Request) a WCF REST service and the request is a

  • 0

I am calling (Ajax Request) a WCF REST service and the request is a cross domain request.

If I deploy my service in the same domain, everything works like cream. Eventually in production, the service will be in a different domain.

I am using jQuery 1.5.2. My service returns me an error saying:

errorThrown: "jQuery15208493315000087023_1334089616458 was not called"
textStatus: "parsererror"

Although in Firefox I can see the JSON values but execution falls to the error handler of Ajax request.

My Ajax request is:

function CallService() {
    $.ajax({
        type: "GET", 
        url: "http://SomeService/EmpService.svc/GetValues?dv=1455",
        contentType: "application/json; charset=utf-8",
        dataType: "jsonp", 
        processdata: false,            
        success: function (data) {
            ServiceSucceeded(data);
        },
        error: function (jqXHR, textStatus, errorThrown) {
            debugger;
            alert("Service Error");
            ServiceFailed(jqXHR, textStatus, errorThrown);
        }
    });
}

On WCF Service side, I have configured CrossDomainScriptAccess to true:

<webHttpBinding>
  <binding name="webHttpBindingWithJsonP"
           crossDomainScriptAccessEnabled="true" />
</webHttpBinding>

JSON response which I get from the server is:

[{"Message": "Stop On Duty", "MessageTime": "\/Date(1334068773893-0500)\/"},
 {"Message": "Start On Duty", "MessageTime": "\/Date(1334068763540-0500)\/"},
 {"Message": "App_testing_4102012924am", "MessageTime": "\/Date(1334068533627-0500)\/"},
 {"Message": "Kunal_testing_4102012924am", "MessageTime": "\/Date(1334067945510-0500)\/"},
 {"Message": "Alert: Door Open", "MessageTime": "\/Date(1334066280963-0500)\/"}]

Am I missing anything here in the settings. Entire code works fine if the service is moved to the same domain.

I looked into similar post but couldn’t make this work.

  • 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-02T03:33:32+00:00Added an answer on June 2, 2026 at 3:33 am

    Well I figured out on my own. Solution was to modify the configuration file holding the service details

    I added Standard Endpoint and the binding in the config file

    <standardEndpoints>
          <webScriptEndpoint>
           <standardEndpoint crossDomainScriptAccessEnabled="true">
           </standardEndpoint>
          </webScriptEndpoint>
          </standardEndpoints>
    
    
    
      <bindings>
    
      <webHttpBinding>
        <binding name="webHttpBindingWithJsonP"
                 crossDomainScriptAccessEnabled="true" />
      </webHttpBinding> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am calling AJAX by jQuery to the script on the same domain, everything
I am calling a WCF Service using AJAX.NET and wanted to know if the
I'm using a cross-domain Ajax request to an external API. Every so often it
I want to avoid previous ajax request on calling the same ajax request again
Calling the ajax called URL works well without ajax eg. http://localhost/ci/controller/method/param_value . But using
I am calling a service that return JSON data. Script: $.ajax({ type: "POST", url:
All, I have a Jquery ajax request calling out a URL. The ajax response
I'm trying to preserve a session across an AJAX request. Simply calling session_start() is
I have implemented an Ajax request on my website, and I am calling the
I have an ajax request that looks like this, $(#frmProducts).submit(function(){ var dataSet = $(#frmProducts).serialize();

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.