Lecture #13 - Web Service Clients

Web Resources
The links in this group are closest to the code in my examples today:
Create a web API with Asp.Net Core Tutorial
Upload-Download files in Asp.Net Core - CodeProject
Web Root Path and Content Root Path in Asp.Net Core
Multiple file upload with Asp.Net webapi - note: not Core
Call a Web Api from a .Net Client - MSDN
Links with additional details or alternate implementations:
Post files between Asp.Net core web api sites
Upload image using HttpClient
Send HTTP POST in Asp.Net Core using HttpClient PostAsJsonAsync
How to save IFormFile to disk?
IFormFile Interface
File Uploads in Asp.Net Core - MSDN
WPF specific links:
wpftutorial.net, WPF Tutorial - tutorialspoint.com
Web API Console client, WPF Client for Asp.Net Web API, Consuming Asp.Net Web API in WPF
These links focus on web-site clients using Javascript libraries:
React Native, CRUD with React and Asp.Net Core, CRUD with React.js and Entity Framework Core
Angular Client for Asp.Net Web API, Build CRUD App for Asp.Net Web API with Angular.js
Xamarin.Android Applications


Final Exam Schedule This lecture focuses on building Web Service Clients with Windows Presentation Foundation (WPF).
  1. Syllabus describes topics to be covered, reading material for you to digest before coming to class, and due dates for the assigned projects.
  2. Projects: Final Project #1, Final Project #2, Final Project #3
    You will do one of these - the choice of which is yours to make - and present on the last day of classes.
    Additional Requirements
    You are expressly requested to refrain from using site editors like Wix, web.com, or other web designers. You may use any of the facilities of Visual Studio or any other text editor of your choice. This same rule applies to your lab submissions as well. For your Final Project demos you will be required to use only page links for navigation. You may host and demonstrate your labs in the built-in Visual Studio web server.
    All projects must use:
    • Asp.net core MVC - main site
    • Asp.net Web API - web service
    • Web API Client
    • SQL db storage
    • At least one static page that uses new features of HTML5, CSS3, and JavaScript6.
  3. Web API clients:

  4. HttpClient

    HttpClient in @angular/common/http
    Apache HttpClient
    Java HttpClient
  5. Website Client Demo

  6. Windows Presentation Foundation (WPF): WPF Presentation WPF Controls
    Illustrates how to use a few of the WPF controls.
    Routed Events
    Shows how events bubble up the Xaml parse tree.
    Attached Properties
    WPF properties are based on a property management system that uses dependency objects to manage visual relationships.
    User Controls
    User Controls allow users to combine WPF controls into panels that can be treated as a single composite control.
    Data Templates
    Data templates allow you to customize the way controls present their information.
    WPF Dispatcher Demo
  7. WPF Clients WPF Dispatcher Demo, Async Await in WPF application
    Accessing Web api using async and await,
  8. Lab #13

    - Integrate Web API into your Final Project Website.