c# - consuming web services - how to develop ui pulling results from many sources -


i´m looking books, tutorials or videos displaying best practices consuming webservices. main idea learn how manage user interface results pulled many sources (eg: ebay developer, yahoo shopping xml, etc) , displayed customers in list of results. many years ago website called www.mpire.com used work in way, displaying results on demand.

i´m developing c#, razor, ef 4, sql server. in advance.

here overview. can start searching more concepts on google.

  1. learn how connect various api's , retrieve data. can in controller considered best practice create c# api wrapper each of api's connecting to. application can use wrapper simplify , seperate concerns. many popular api's .net wrappers created , available on open source sites such codeplex or github. documentation each api place start. reference wrapper language working in or may have developed there own can download.

  2. once retrieving data, have consider if going store data in app or if going call api data. depending on situation, can store data in database, making things faster , reducing calls external api. doesn't work / isn't allowed in situations depends on use case. if going save data, need learn database persistance. linq2sql place start because easy. there examples on www.asp.net/mvc

  3. depending on if retrieving data database or api directly, need create custom view models views. in controller, can gather data various sources , combine single object called view model. there pass view model view , display data on page. stay away asynchronous controllers until working , go performance tuning. these add complexity don't need learning.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -