Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 2 Developing WCF Host Components : Overview

Overview
Microsoft Windows Communication Foundation (WCF) is a service-oriented programming model for constructing distributed applications.
A WCF service is composed of three parts:
Once you have designed and implemented the service contract, you configure how the service is exposed to clients. This involves specifying the address where the services can be found, the transport and message encoding it uses to send and receive messages, and the type of security it requires. WCF supports two ways to configure services: in code and through configuration files.
ActiveMatrix Implementation Type for WCF Host integrates WCF services with the ActiveMatrix platform. A WCF Host component functions as the host environment for a Microsoft WCF service. A Microsoft WCF service hosted using the Implementation Type for WCF Host can consume services deployed within the ActiveMatrix environment as well as external Microsoft WCF Services.
ActiveMatrix Implementation Type for WCF Host requires that you generate WSDL files that represent the WCF services. Also, it requires that you configure a services and references within an application configuration file. After you import the WCF Host implementation, the associated WSDL/schemas, and the application config file into TIBCO Business Studio, amend the application configuration file with ActiveMatrix specific configuration in the WCF Config File Editor.
Development Process Summary
The process for developing WCF Host components can be summarized as follows:
Microsoft Visual Studio
1.
Create implementation assemblies and application configuration files. If the implementation is a client of an ActiveMatrix service, reference the service proxy following the procedures described in Invoking ActiveMatrix Services from WCF Host Component Implementations.
Microsoft svcutil
2.
TIBCO Business Studio
3.
4.
WCF Host Config File Editor
5.
6.
Composite Editor
7.
8.
9.
Sample Hello World Service
TIBCO ActiveMatrix Implementation Type for WCF Host contains a sample hello world service. As shown in Figure 1, the example consists of two services—Hello World service and Date Manager service—that work together to return an acknowledgement string when a user submits a name to a Hello World SOAP client.
Figure 1 Hello World Example
The hello world sample files include:
The files for the sample are located in the folder AMX_HOME\extensions\wcfhost\1.0\samples\HelloDateTime. This folder contains a readme.txt file that describes how to run the service and invoke it from a client in TIBCO Business Studio and the following subfolders:
com.tibco.amxext.sample.hellodatetime.soa  ActiveMatrix SOA project
com.tibco.amxext.sample.datemanager.wcf  Visual Studio project implementing Date Manager service
com.tibco.amxext.sample.helloworld.wcf  Visual Studio project implementing Hello World service and Date Manager proxy
The relationship between the files in the two Visual Studio projects is illustrated in Figure 2.
Figure 2 Sample Visual Studio Projects

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved