Instructor-led training
WCF Using C# Training in Port Royal, South Carolina
Windows Communication Foundation (WCF) is Microsoft's new framework for building distributed systems.
What you'll learn
Private Training for Teams
This course is offered as private, instructor-led training for organizations, onsite in Port Royal, South Carolina or live online. Dates, delivery format, and course content are arranged around your team's requirements.
This course is not currently scheduled as a public class for individual enrollment.
Request Group TrainingPrerequisites
Course Outline
What makes WCF hard to master
The C# is rarely the obstacle. The difficulty is that a WCF service is defined as much by configuration and contracts as by code, and a mistake in either often shows up only when a client calls the service. The syllabus builds the layers in order.
- Address, binding and contract. The course starts with the "ABC" model, then covers addresses, bindings, message exchange patterns, configuring bindings, multiple endpoints, default and standard endpoints, and interoperating with ASMX Web services. Choosing a binding is a design decision about transport, encoding, session and security behavior. It is not a syntax detail.
- Contracts as a public API. Service contracts cover multiple contracts per service, contract inheritance and operation overloading. Data contracts cover mapping to XSD schema, serialization, arrays and generic collections, enums, and versioning. A common misconception is that a .NET type can simply be passed across the wire. In WCF, the contract decides what is sent, and changing it can break existing clients.
- Instance management. Per-call, per-session and singleton services behave very differently with state. Singletons especially raise shared-state and thread-safety questions.
- Messaging patterns and async. One-way and duplex contracts, asynchronous proxies, the task-based asynchronous pattern and WebSockets each change how client and service interact.
- Faults. Exceptions do not cross a service boundary on their own. The syllabus covers faults and exceptions, fault contracts, and the interaction of faults with sessions.
- Security and routing. Transport versus message security, certificates and credentials are topics where configuration must match on both sides. The course ends with the WCF Routing Service: configuration, contracts, message filters, error handling and routing scenarios.
Who this course suits and what to take around it
The course suits developers who build, maintain, support or migrate service-oriented systems on WCF, and the training managers who plan for them. The prerequisite is a good working knowledge of building .NET applications with C#. Prior experience with distributed systems and Web services helps but is not required.
If your C# or framework fundamentals need strengthening first, .NET Framework Using C# covers the platform WCF builds on. Developers who are newer to the language can start with C# and .NET Essentials, Rev. 8.0.
The syllabus includes a comparison of WCF and Web API. Teams that are also building new web-facing applications on a different stack may find ASP.NET Core MVC (VS2022) a useful complement, since it addresses a separate programming model.
The course uses Visual Studio 2017, which is in extended support only, until April 2027. Organizations on other tool or framework versions can ask about customized private training.
Illustrative scenarios
The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.
- Exposing business operations to mixed clients. A team might expose one service through several endpoints, using a binding suited to an internal Windows Forms client and a different one for interoperation with an ASMX-style consumer. This draws on addresses and bindings, multiple endpoints and metadata.
- Evolving a contract without breaking callers. For example, a team adds a field to a data contract and a new operation while older clients keep running. This is a data contract and service contract versioning problem, and it depends on understanding serialization and schema mapping.
- Securing and fronting a service. A team might protect a service with transport or message security using certificates and credentials, then place the WCF Routing Service in front of it. The router would use message filters to send requests to different back-end versions and fall back when one fails.
AI coding assistants and WCF
AI coding assistants are good at the repetitive parts: drafting service and operation contract interfaces, data contract classes with member attributes, a basic self-hosting program, or a client that uses a channel factory. They can also suggest the shape of a configuration file.
They fail in the places where WCF is hardest:
- Configuration that looks right but does not match. Binding, security mode, credential and endpoint settings must agree between client and service. A generated snippet may compile and still fail at the first call.
- Wrong framework assumptions. Assistants often mix WCF with ASP.NET Core or Web API idioms, or call APIs that do not exist in the framework version you target.
- Faults, sessions and async. Generated code often lets exceptions escape instead of using fault contracts. It may also reuse a proxy after a fault, or mix the task-based asynchronous pattern with blocking calls.
- Versioning. An assistant may change a data contract in a way that breaks existing clients.
To verify, check the generated contracts and configuration against your target framework. Run the service in the WCF Test Host and call it from the Test Client. Inspect the published metadata. Test with a real client on the intended binding, and deliberately trigger a fault to confirm the client handles it. Review security settings by hand rather than trusting generated defaults.
Frequently asked questions
What level is this course?
It is a general-level, 3-day course. It assumes working C# experience and moves from WCF essentials through contracts, instance management, error handling, security and routing.
What should I know before attending?
A good working knowledge of building .NET applications with C#. Experience with distributed systems and Web services is an advantage but not required.
What does the course cover?
It covers the address, binding and contract model, hosting, clients and proxies, service and data contracts, instance management, one-way and duplex contracts, the task-based asynchronous pattern, WebSockets, faults, security and the WCF Routing Service. An appendix covers hosting in IIS 7.5.
Can the course be delivered privately, onsite or online?
Yes. HSG delivers private training for organizations at the client's location or live online.
Can the content be customized?
Private training can be customized, including to the technology versions your organization uses. You can describe your needs through the training proposal request.Training locations
WCF Using C# training across the U.S. and beyond.
We provide private WCF Using C# training for organizations, onsite at your location or live online, throughout the United States and internationally.
View all WCF Using C# training locations
Train your team with HSG
Private, instructor-led training customized for your organization.
- Onsite or live online delivery
- Customized curriculum
- For a single employee or an entire team
- Flexible scheduling
- Experienced instructors
Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com
Ready to train your team?
Let's customize this training for your organization.
Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.