Both Web services and WCF enables you to fulfill you Service Oriented Architecture implementation. If Web Services can be used to make your architecture Service Oriented then why did Microsoft come up with something new called WCF. Sure WCF needs to have something over Web Services. Let’s see what WCF has in addition to what Web Services had. Here are some points:
The WCF Routing Service provides are pluggable SOAP intermediate that routes messages based on the message content. The Routing Service also provides you with the ability to create complex routing logic that enables you to handle scenarios such as service versioning, service aggregation, multicast routing, priority routing. The Routing Service also has Error Handling by having backup endpoints to which the messages are routed in case of a failure.
Before you can invoke methods on the service, you must add a service reference to your project. To do this, right-click the workflow project node, and then click Add Service Reference. Use the Add Service Reference dialog box to retrieve the service information and add the reference to the project.
Windows Workflow Foundation (WF) enables you to integrate your workflow solutions seamlessly into applications that are based on the Windows operating system. The ability of the workflow to call methods in the host process and then to handle events from the host process to control execution flow is functionality that is often required.
When you monitor activities in a distributed application, it can be difficult to correlate events on various machines, such as the correct sequence in which activities occurred and which activity caused a subsequent one to occur. WCF provides a solution that has a built-in correlation mechanism, which you can enable by doing the following:
You can define your own application-specific or service-specific activities that you want to trace. To do this, you define a TraceSource in your code and pass a name for the source. You can then use this source name in your WCF configuration file and add a trace listener to it.
WCF provides functionality that enables you to monitor the activities that your services and client applications perform when they run. Tracing is not enabled by default. To activate tracing, you must create a trace listener and set a trace level other than Off for the selected trace source in your configuration
How to analyze WCF Trace? How to do the analysis of a WCF Trace?
To generate useful diagnostic information to debug a problem in your WCF solution, you must match the level of detail and the amount of coverage to the problem at hand.
To enable your WCF service or WCF client application to log messages, you must add the necessary configuration elements to the WCF configuration of your application. The following WCF configuration example shows how you can configure message logging in its simplest form