Solved

wcf, jquery/ajax

Posted on 2015-02-03
1
146 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 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

What is a Lightbox? A Lightbox is the effect you see when you click, for example, an image and the screen fades out and up pops the same image but in its full size dimensions. There are lots of Lightbox effects for jQuery. Problem is they are a…
Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
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…

735 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