Solved

wcf, jquery/ajax

Posted on 2015-02-03
1
139 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
1 Comment
 
LVL 35

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Requirements JQuery 1.6+ HTML CSS Introduction This article was inspired by an EE question (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28372511.html) on how to make a page show some balloons animate up a page…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

912 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

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now