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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:32:13+00:00 2026-05-23T09:32:13+00:00

i have a WCF 3.5 service where i need to call it using jQuery

  • 0

i have a WCF 3.5 service where i need to call it using jQuery as cross domain call, when i call the service i have return correct response but jQuery throw an exception parsererror status
this is the code i use to call the WCF service

<script type="text/javascript">
    $(document).ready(function () {
        var wordlist = $("#main-container").text()


        $.ajax({
            type: "GET",
            contentType: 'application/json; charset=utf-8',
            url: 'http://192.168.1.210:8080/XXXX.SPServices/GlossaryService.svc/GetWordsWithDifenition',
            dataType: 'jsonp',
            data: { 'stringwords': wordlist },
            success: function (data) {
                PutLinkToDefinition(data);
            },
            error: function (jqXHR, textStatus, errorThrown) {
                debugger;
            }
        });
    });

</script>

jQuery calls the error function and throws this error

jQuery161074459453323911_1309093997517
was not called

and this is my WCF service

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using System.Text;
using Microsoft.SharePoint.Client.Application;
using Microsoft.SharePoint.Client;
using System.Net;
using System.Configuration;

namespace XXXX.SPServices
{
    [ServiceContract(Namespace = "")]
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]

    public class GlossaryService
    {
        // To use HTTP GET, add [WebGet] attribute. (Default ResponseFormat is WebMessageFormat.Json)
        // To create an operation that returns XML,
        //     add [WebGet(ResponseFormat=WebMessageFormat.Xml)],
        //     and include the following line in the operation body:
        //         WebOperationContext.Current.OutgoingResponse.ContentType = "text/xml";
        [OperationContract]
        [WebGet]
        public Dictionary<string,string>  GetWordsWithDifenition(string stringwords)
        {
            ......
        }



}

this is the markup

<%@ ServiceHost Language="C#" Debug="true" Service="XXXX.SPServices.GlossaryService" CodeBehind="GlossaryService.svc.cs"  Factory="System.ServiceModel.Activation.WebScriptServiceHostFactory" %>

your help is appreciated

  • 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-23T09:32:14+00:00Added an answer on May 23, 2026 at 9:32 am

    WCF 3.5 doesn’t support cross domain calls / JSONP out of the box. You must either upgrade to WCF 4 or check this sample.

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

Sidebar

Related Questions

I have a WCF service that I need to call. When I go through
I have a successfully running WCF service that I can call using javascript. However
I need to call a wcf service method in my project, if I have
I have a wcf web service and I need to provide the client with
I have a WCF service that I am calling from multiple clients. I need
I have a need to connect to a WCF service I wrote without having
I need help with wcf service. i have a ajax-enabled wcf service: public class
I have a WCF service that is using a custom UsernamePasswordValidator. The validator needs
.NET 3.5, VS2008, WCF service using BasicHttpBinding I have a WCF service hosted in
I have a WCF service, this is a method which I'd to call: [OperationContract]

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.