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
Solved

wcf json/ajax

Posted on 2015-01-15
3
154 Views
Last Modified: 2015-01-30
I just hope I can find a simple link I can download project that working in wcf and ajax/jquery. No database included. Just a simple wcf call by ajax.
I have been browsing for 2 days, and can't find one good/simple example that is working.

Please help if you know any. I look like there is alot of there but too many are not working and can't be downloaded.

Thanks
0
Comment
Question by:ITsolutionWizard
  • 2
3 Comments
 
LVL 35

Expert Comment

by:Miguel Oz
ID: 40552294
Please check link below:
http://www.codeproject.com/Articles/132809/Calling-WCF-Services-using-jQuery
It does not have a database
0
 

Author Comment

by:ITsolutionWizard
ID: 40552345
need something easier.
0
 
LVL 35

Accepted Solution

by:
Miguel Oz earned 500 total points
ID: 40553220
Please be more specific. The sample in the link is implementing a very simple WCF method
public string GetData(int value)
    {
        return string.Format("You entered: {0}", value);
    }

Open in new window


If you need step by step (and you are using MVC 4 or up),  you could use WebApi. It is less complex than WCF when creating JSON based web services.
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

There are a couple ways to attach a JavaScript function to dynamically created elements. You can make a new script for each element as it’s created or you can use delegation. Delegation allows a single script that is added at page creation to mat…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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…

839 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