Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

wcf, jquery/ajax

Posted on 2015-02-03
1
Medium Priority
?
160 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 2000 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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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…
Suggested Courses

610 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