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


Chapter 2 Subscriber Binding with SOAP : Setting Up the Example

Setting Up the Example
 
To set up the example, complete the following tasks:
 
Task A Set up Lotus Notes Application
To run the examples:
1.
2.
Open the sample.nsf file from ADLN_HOME/examples/LotusDatabase, and upload it to Domino Server.
Task B Import the Adapter Project and SOA Project
1.
2.
3.
In the Import dialog, select General > Existing Projects into Workspace. Click Next.
4.
In the Import dialog, check the Select archive file radio button, browse to select the example archive file AMX_HOME\extensions\adlnse\6.0\samples\AMX_UIBase\SubscriberDemo.zip.
5.
Ensure that the Adapter Project SubDemo-UI and the SOA Project SubDemo-SOA have been selected in the Projects pane.
6.
Select the Copy projects into workspace checkbox.
7.
Click Finish.
Task C Customize the Adapter Project
After importing the projects, you need to change the connection parameters as required by the environment.
1.
In the Project Explorer, expand SubDemo-UI > defaultVars, and then double-click defaultVars.substvar to open the editor for substitution variables.
2.
Change values for substitution variables adln.connection.dominoserver, adln.connection.username, and adln.connection.password.
3.
4.
In the Project Explorer, expand SubDemo-UI > Shared Resources, and then double-click LotusNotes Connection.sharelnc to open the editor for connection.
5.
Click the Test Connection button to ensure that the adapter can connect to Lotus applications.
Task D Update the SOA Project
The adapter project being customized, you need to update resources in the SOA project.
1.
a.
In the Project Explorer, expand SubDemo-UI > Adapter Configurations, right-click the adapter instance LotusNotesAdapterConfiguration.adlnmodel, and then select Generate Adapter WSDL from the shortcut menu.
b.
c.
Click OK when prompted to overwrite the existing resource.
2.
a.
In the Project Explorer, expand SubDemo-SOA > Composites, and then double-click SubDemo-SOA.composite.
b.
c.
d.
Click the Generate WSDL button to generate the WSDL file that is used by the external client to access the service within ActiveMatrix.
3.
a.
In the Project Explorer, expand SubDemo-SOA > Deployment Packages.
b.
Right-click the service assembly file SubDemo-SOA.saf, and then select Refresh Service Assembly from the shortcut menu.
c.
Right-click the SubDemo-SOA.saf file, and then select Build Archive from the shortcut menu.
d.
Click Yes when prompted to overwrite the existing resource.
Task E Import the Designer Project
1.
2.
Start TIBCO Designer and select Open existing project.
3.
In the Multi-File Project tab, select SubDemoTrigger-BW for the Project Directory field. Click OK.
4.
5.
a.
From the Project menu, select Import Resources from File, Folder, URL.
b.
In the Import Resources or File dialog, select File (.xsd, .xslt, .wsdl, .*) from the Format list.
c.
Click the Select a file from the file system button next to the File field to locate the .wsdl file that is generated for the SOAP composite service.
d.
e.
Select the InsertAction activity in the Design panel.
f.
In the Configuration tab, click the Browse resources button next to the Service field. In the Select a Resource dialog, click the By Location tab, and then select the WSDL file that you imported earlier. Click OK.
6.
Click Apply and save the project.

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