Web Resources:
Color Lab, Color Codes, HTML tags, Everything HTML, XML, HTML, Scripting, webdeveloper.earthweb, devx..., W3Schools, Web Developer's Virtual Library, World-Wide Web Consortium, WebReferenceContent:
This lecture is concerned with Silverlight and Web Services as implemented in Windows Communication Foundation (WCF).- Syllabus describes topics to be covered, reading material for you to digest before coming to class, and due dates for the assigned projects.
-
Final Projects:
-
Chalk Talk:
- Static Web Model
- Traditional SOAP-based Web Service
- Windows Communication Foundation
- Web API
- REST
-
Traditional Asp.Net Web Services:
Web Services Tutorials and References: W3Schools
WebService Class - MSDNWeb Services Presentation
CalcWebService - view folder
Web Service using Session - view folder -
Web-Api Services
First Web Api Service - Interactive Demo, Steps to Web-Api and Client MvcWebApi Code Folder C# Threads and Tasks
HttpClient Introduction
.Net HttpClient
HttpClient is Here
Calling Web Api from .Net Client
Calling Asp.Net WebAPI using HttpClient - CodeProject Mvc-WebApi-FileService
Uses transfer of byte arrays to download files in chunked form.
This is the recommended approach to build clients for WebApi services.
We'll use this next time applied to Windows Presentation Foundation clients. How to upload "text/plain" string in Web API
WebApi File Upload - CodeProject
Uploading Files - codeguru -
Note:
Everything below this line is now superceded by the Asp.Net WebApi and is not compatible with Asp.Net Mvc 5. I left these materials here in case you need to maintain some legacy code. You will need Visual Studio 2012 to build.
-
Asp.Net Mvc with WCF Service
MVC with Service - Interactive Demo
We create a simple MVC application, add a WCF service, and call it from the application controller methods and a seperate desktop application, as well. References for the code above: -
Windows Communication Foundation (WCF):
Note: Building WCF Service Projects:
To run a WCF service from Visual Studio you will need to run VS as administrator. To run an existing client in Visual Studio you may need to refresh the service reference - expand the service references tab, right click on the service reference your client is using, and select refresh. That is necessary because the tiny web server embedded in Visual Studio uses a different port number when restarted.WCF Presentation
File Service - Lab #8, su10
Uploads and downloads binary files in blocks, using conventional file processing and WCF communication. Timed File Streaming
Uses file streaming directly supported by the WCF infrastructure. Other Sample Code you may wish to Look over: Hand-Crafted BasicHttpService
Shows how to define server channels and client proxies using WCF classes in a simple way for BasicHttpBinding.
Hand-Crafted WsHttpService
Shows how to define server channels and client proxies using WCF classes in a simple way for WsHttpBinding.
WCF Self Host Service
Microsoft's calculator service, used in many of the MS WCF Samples
WCF Self Hosted Strings Service
Demonstrate service sending strings by value, reference, and receiving out string.
WCF Instances
Show how to use each of the three server activation models using Microsoft Calculator service.
WCF Message Passing Communication
Show how to build a simple, effective message-passing system using WCF data contract.
WCF Wizard-based Service, WCF Wizard-based Service
This project shows you what the C# WCF wizard generates. It's probably easier to start from one of my projects.
MSDN Getting Started with WCF Tutorial -
Silverlight:
Silverlight Tutorials and References:
Scott Guthrie's Silverlight 2 tutorial, Silverlight Reference Poster, Silverlight Tips of the Day, Gradients, MSDN - Shapes Presentation and Demos:
Silverlight Presentation
First Silverlight Demo, Silverlight Demo folder
Silverlight1 Charter, Silverlight1 Charter folder Notes:
Xap MimeType Installation - Lab Assignment #9