Client-Server WCF Service Application

2 posts, 0 answers
  1. Evan
    Evan avatar
    1 posts
    Member since:
    May 2013

    Posted 07 Aug 2013 Link to this post

    Hello,

    I am looking for some insight on consuming webservices using Icenium. I am writing a WCF Service Application in Visual Studio 2010 that will be hosted on my company's internal server and in order to configure/write correctly I was hoping someone could tell me the way in which the mobile apps behave/consume services. Does it act as a pure client or as a web page where I will need to write cross-domain services?

    If any one could provide me with examples of their existing WCF Service Application web configs/interface/service code that they have used with an AJAX call in Icenium, that would be great.

    Thank you!
  2. David Silveria
    David Silveria avatar
    234 posts
    Member since:
    May 2006

    Posted 12 Aug 2013 Link to this post

    Basically you should create wcf rest service and return json response and on the client you would use jquery ajax/jsonp to read the response. Check out these blog series:
    • http://www.practicaldeveloper.net/2012/05/restful-wcf-services-with-jquery-mobile.html?m=1
    • http://www.practicaldeveloper.net/2012/05/restful-wcf-services-with-jquery-mobile_10.html
    • http://www.kendoui.com/blogs/teamblog/posts/12-05-11/hello_services_webapi_rest_json_and_ajax.aspx

    Cheers!

Back to Top