WCF « json « jQuery Q&A

Home
jQuery Q&A
1.addClass
2.alert
3.array
4.attribute
5.browser
6.callback
7.clone
8.Cookie
9.Date
10.Development
11.document
12.dom
13.element
14.filter
15.Firefox
16.flash
17.format
18.html
19.input
20.internet explorer
21.json
22.mootools
23.page
24.performance
25.regex
26.safari
27.selector
28.setTimeout
29.String
30.table
31.Text
32.trigger
33.URL
34.video
35.xml
jQuery Q&A » json » WCF 

1. Json data has {d:"data"}    stackoverflow.com

I am writing jquery ajax code to call wcf service. In this case WCf returns html as string. Some how when data is back in jquery it is in {d:"data"} format, What ...

2. Problem Calling WCF Service Library from jQuery    stackoverflow.com

I have a WCF Service Library exposed through my ASPX site as follows

[System.ServiceModel.OperationContract]
[System.ServiceModel.Web.WebInvoke(
Method= "POST",
RequestFormat=System.ServiceModel.Web. WebMessageFormat .Json,
ResponseFormat=System.ServiceModel.Web.WebMessageFormat .Json)]
LogonResponse Logon(LogonRequest logonRequest);


[System.Runtime.Serialization.DataContract]
[ Serializable()]
public class LogonRequest
{
[System.Runtime.Serialization.DataMember]
public string EMailAddress;
[System.Runtime.Serialization.DataMember]
public string Password;
}
In My test page I can ...

3. WCF JSON object    stackoverflow.com

    [OperationContract]
    [WebGet(RequestFormat = WebMessageFormat.Json)]
    public MyEmployee DoWorksINGLE()
    {

           ...

4. Parsing JSON object in JQuery    stackoverflow.com

I have simple JSON object returned in form

{"d":"{\"Name\":\"DMX100\",\"Description\":\"blah blah\",\"ID\":\" 780\",\"Make\":\"2010\"}"}
How do I parse it in success.
success: function(msg)
{
...

5. Need help with $.GetJson    stackoverflow.com

I'm using Jquery with WCF, and I'm struggling with getting values when it's returned as arrays by the WCF service. Here's my JQuery code:

 $(document).ready(function () {
      ...

6. Create a WCF service to communicate with JQuery through JSON    stackoverflow.com

I have a bog standard html page. All I want to do is :

  • use JQuery on that page to send JSON requests to a WCF service
  • retrieve JSON back.
That's it. I ...

7. What should we take care of when passing json to a WCF webHTTP service?    stackoverflow.com

I'm running into a lot of troubles trying to do a post request from my jQuery code passing a JSON object to my webservice method. I know this question might seem to ...

8. Testing/Building MSDN article "JSON with Padding (AJAX) "    stackoverflow.com

UPDATE 3

var local = 'http://localhost:1163/CustomerService.svc/getcustomer?method=?';
            var dev = 'http://yourserver.com/CustomerService.svc/GetCustomer?method=?';
            ...

9. Return JSON data from a WCF service with netTcpBinding    stackoverflow.com

I'm creating a WCF service that I would like to return JSON data from. I'd also like to call the service and retrieve the data using jQuery. My problem is that ...

10. 404 not found when accessing JSON WCF Service with jQuery    stackoverflow.com

I have a WCF service hosted in IIS which seems to be running fine but am unable to access it through jQuery on the client side. My site structure is like this ...

11. Using interface in service contract instead of concrete type in WCF    stackoverflow.com

I have WCF service operation which accepts Interface as a input type. While calling this service operation from jQuery Ajax, I'm getting message "The server was unable to process the ...

12. Jquery passing data to ajax function    stackoverflow.com

I'm having problems passing data values to the Jquery Ajax function. I have been using the getJSON function and that was working fine but now I want to use the ajax function ...

13. WCF Webservice with JSON output misbehaving    stackoverflow.com

I have been bashing this around for nearly 2 days now. I have read hundreds of blogs, SO posts and MSDN articles and I have still not got my WCF service ...

14. Problem in consuming wcf service in jquery....Need help    stackoverflow.com

I am facing problem in consuming wcf service.The responce in ajax is going to error function. The url is perfectly right.

    $.ajax({
       ...

15. Need some clarification on JSONP with JQuery/WCF    stackoverflow.com

Goal: Expose a simple WCF service that would take as a parameter a string that was a username and see if it already existed. This service would be used on the ...

16. jquery Ajax call to WCF Service getting 401 Unauthorized json response    stackoverflow.com

I'm attempting to call a wcf service hosted in my application inside our intranet to fill the jquery plugin fullCalendar. The response I'm getting is 401 Unauthorized in firebug. When ...

17. jQuery Ajax with Json call to WCF service pass-through to WCF service    stackoverflow.com

I'm attempting to use jQuery Ajax call with Json to call a webservice which is a pass-through and calls another webservice. This works if I don't use ajax, works as ...

18. WCF: Consume a WCF service using jQuery and also a Windows Application    stackoverflow.com

I've successfully consumed a WCF Service using jQuery by following this link: http://www.codeproject.com/KB/aspnet/WCF_JQUERY_ASMX.aspx I just made a few modifications for my POCO entities to serialize properly. Everything works fine if ...

19. How to parse JSON created by WCF DataContract object    stackoverflow.com

I have an object decorated with [DataContract] attribute and my WCF service is returning this as JSON like this:

{"GetCommentsByPostResult":[{"CommentCreated":"\/Date(1305736030505+0100)\/","CommentText":"Comment 1"},{"CommentCreated":"\/Date(1305736030505+0100)\/","CommentText":"Comment 2"},{"CommentCreated":"\/Date(1305736030505+0100)\/","CommentText":"Comment 2"}]});
Ive attempted to iterate through the CommentCreated with this jQuery ...

20. Jquery calling my wcf web service. How to view the returned json?    stackoverflow.com

So I have my web service which is a WCF and it supports JSON. When i enter this url
http://localhost/HelloWorldWebService/HelloWorld.svc/getperson
in my browser it returns
{"GetPersonResult":{"FirstName":"John","LastName":"Doe"}} Now ...

21. WCF Service with JSONP resonse jQuery problems    stackoverflow.com

I'm new to JSONP and Ajax/JQuery. I've searched high and low for an answer and can't find anything out there. I have a self hosted WCF service setup with WebHTTPBinding with ...

22. Best way to return JSON to JScript using json.net    stackoverflow.com

I'm returning a JSON using WCF and webHttpBinding so that it can be used JQuery for some grids. Today, I'm querying the database, and getting a DataTable back and, using Linq, ...

23. Consuming WCF from jQuery as JSON    stackoverflow.com

With a contract:

namespace ACME.FooServices
{
    [ServiceContract]
    public interface IFooService
    {
        [OperationContract]
      ...

24. jQuery consuming JSON WCF    stackoverflow.com

I have a WCF service with 3 string arguments. Calling this with jQuery and JSON does reach my method but only 1 of the arguments contain a value - the others ...

25. WCF JQUERY and JSON 415 unsupported media type    stackoverflow.com

I am working with WCF using jquey JSON. I am getting error as "415 unsupported media type" and i get the XML error in firebug as "XML Parsing Error: no element ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.