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


Chapter 4 RPC Server with Dynamic Login : 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.
3.
Grant access to the sample.nsf file to the users who are required to perform the login example.
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\DynamicRpcserver.zip.
5.
Ensure that the Adapter Project DynamicRpcs-UI and the SOA Project DynamicRpcs-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 DynamicRpcs-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 DynamicRpcs-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 DynamicRpcs-UI > Adapter Configurations, right-click the adapter instance ADLN_DynamicRpcsConfiguration.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 DynamicRpcs-SOA > Composites, and then double-click the composite file DynamicRpcs-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.
e.
3.
a.
In the Project Explorer, expand DynamicRpcs-SOA > Deployment Packages.
b.
Right-click the service assembly file DynamicRpcs-SOA.saf, and then select Refresh Service Assembly from the shortcut menu.
c.
Right-click the DynamicRpcs-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 DynamicRpcsTrigger-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.
Ensure that you import all the three WSDL files.
d.
e.
Select the Login activity in the Design panel.
f.
In the Configuration tab, click the Browse resources button next to the Service field.
g.
In the Select a Resource dialog, click the By Location tab, and then select the WSDL file that you imported earlier. Click OK.
Select Replace old import when a message indicating that the namespace is imported already pops up.
h.
Repeat step e through step g for the other two activities of the process.
6.
Select the Login activity in the Design panel.
7.
In the Input tab, change the values of the usernam field and the password field to login to Domino Server. Save the project.

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