Solved

wcf, jquery/ajax

Posted on 2015-02-03
1
150 Views
Last Modified: 2015-02-19
I use jquery/ajax to consume wcf /json enabled service and find a rare issue.
For some reasons, I can't view the wcf, and I do not know how to fix it. any ideas below?

case 1: not working:
url: GetDealerListJSon + encodeURIComponent("([5,5,5],SA7,062,337557,[KDAV300,KDX40,CSGW1200])"),
                 

case2: working
url: GetDealerListJSon + encodeURIComponent("([555],SA7,062,337557,[KDAV300,KDX40,CSGW1200])"),


how can I make it working like case 1.
0
Comment
Question by:ITsolutionWizard
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 36

Accepted Solution

by:
Miguel Oz earned 500 total points
ID: 40587851
Q1. Could you post the WCF method declaration for GetDealerListJSon?
There maybe an issue with the first parameter but hard to tell without looking at the method.
Q2. Is this a REST web service?

Also if you can add error method to your ajax method call as shown here and post the reported error message. It would be better if you can post your ajax method code as well.
0

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question