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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:18:28+00:00 2026-06-11T17:18:28+00:00

I am trying to make a WCF call to a function which accepts one

  • 0

I am trying to make a WCF call to a function which accepts one String parameter. When I pass parameters from jQuery, I am using JSON.stringify(parameters), where parameters is a name:value collection containing the parameters I want to pass.

My doubts are

  1. In my version of IE, JSON is not defined. So, I used the JSON2.js library and included that in the master page of my site.
  2. I still encounter the same message. JSON is undefined on IE.

Well, it works perfectly on Google Chrome.

PS – This is all on .NET.

Script name is json2.js. The values I am passing in jQuery are

data:JSON2.stringify(parameters),
contentType: "application/json2; charset=utf-8",
dataType: "json2"

I am using IE8. (Sorry to not provide this detail before, just added)

Please advise.

  • 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-11T17:18:30+00:00Added an answer on June 11, 2026 at 5:18 pm

    You are using json2 at all places where you should ideally be using json

    Please change your ajax call as

    data:JSON.stringify(parameters),
    contentType: "application/json; charset=utf-8",
    dataType: "json"
    

    On an unrelated side-note, you can omit charset and dataType and change the call like this

    data:JSON.stringify(parameters),
    contentType: "application/json;",
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make a call to a remote WCF service from within an
I am trying to make a WCF communication between two machines in which one
I'm trying to call a WCF Webservice, from a dll I have made, running
My client application is trying to call a wcf service using transport security. The
I am trying to call a Java service using WCF. The service sends a
I am trying to test a WCF service using the basichttpbinding endpoint from the
Thou there a dozen posts that cover how to call WCF methods from jQuery,
I am trying to make an ajax GET request to a WCF web service
I'm currently trying to find good way to make calls to WCF services in
I am fairly new to iOS development and trying make a simple app which

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.