Author Topic: Example about load json data from webservice  (Read 4092 times)

[email protected]

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 3
    • View Profile
Example about load json data from webservice
« on: May 19, 2014, 09:10:43 pm »
There is an example, simple, how to set a screen, loading data from a webservice to bring json data? I have not found the demos

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Example about load json data from webservice
« Reply #1 on: May 19, 2014, 10:03:03 pm »
All the examples in demos are written with RESTful architecture and most of them with JSON data.

The client side code shown in the demos is equally relevant for web services with RESTful API. Please be through this topic
http://paramquery.com/pro/tutorial#topic-loaddata


Your web service implementation depends upon the language / framework being used on the server side.

[email protected]

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Example about load json data from webservice
« Reply #2 on: May 19, 2014, 10:07:37 pm »
I mean a complete example; not directed, the API.
A complete example of a simple data grid, charged via webservice in json format of Restful rate, a typical method GET.
But the example is complete.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Example about load json data from webservice
« Reply #3 on: May 19, 2014, 11:24:44 pm »
Currently there is no demo for webservice.

[email protected]

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Example about load json data from webservice
« Reply #4 on: May 19, 2014, 11:30:59 pm »
I know, because I had seen.
So what I ask is to see if you can put that piece of javascript code, because I imagine it must be quite simple, for you.
For those who started it would be quite helpful.
Thank you.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Example about load json data from webservice
« Reply #5 on: May 20, 2014, 12:13:12 am »
Now I'm not sure what you mean.

You don't need to change javascript as provided in the demos if you want to make it work with a webservice. webservice is a server side implementation.

For example http://paramquery.com/pro/demos/paging_local is a simple example of loading JSON data from server database.

If you want to implement webservice for it, you need to write or modify server side code provided in ASP.NET tab but javascript code ( provided in javascript tab) would remain same though you might want to point it to webservice uri ( dataModel.url ).