Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 4 RPC Service Example : Setting Up the Example

Setting Up the Example
To set up the environment for the example, you need to complete the following tasks:
To create a new SOA project instead of using the pre configured one, proceed with Task C through .
 
Task A Configuring the Environment for TIBCO ActiveMatrix
For detailed information about configuring the Environment for TIBCO ActiveMatrix, refer to Configuring the Environment for TIBCO ActiveMatrix.
Task B Importing the Adapter Project, SOA Project, and TIBCO Designer Project
To import the Adapter project, the SOA project, and the TIBCO Designer project into the TIBCO Business Studio, refer to Importing the Projects into TIBCO Business Studio.
The Adapter project SBLAdapterRPCSample, the SOA project SBLAdapterRPCSOASample, and the TIBCO Designer project SBLAdapterRPCBWSample must be imported into your workspace for this example.
If you want to create a new SOA project and a new TIBCO Designer project instead of using the pre configured ones, proceed with the following tasks.
Task C Creating an SOA Project
To create a new SOA project, follow these steps:
1.
2.
Select File > New > Project... from the Menu to open the New Project dialog.
3.
Expand TIBCO ActiveMatrix > ActiveMatrix SOA Project, and then click the Next button.
4.
Type SiebelAdapterRPCSOASample in the Project name field, and then click the Next button.
5.
Click the Finish button.
Task D Creating a TIBCO Designer Project
To create a TIBCO Designer Project, follow these steps:
1.
Select File > New > Project from the Menu to open the New Project dialog.
2.
Select TIBCO Designer > TIBCO Designer Project in the Select a wizard page, and then click the Next button.
3.
Type SiebelAdapterRPCBWSample in the Project name field, and select the Create new project in the workspace radio button.
1.
Click the Finish button.
Task E Generating the Adapter WSDL
Before performing this task, make sure all the settings for the SiebelAdapterRPCSample project are correct.
To generate the adapter WSDL file, follow these steps:
1.
In the Project Explorer Panel, right-click SiebelAdapterConfiguration.adsblmodel under the imported Adapter project SiebelAdapterRPCSample.
2.
Select Generate Adapter WSDL from the pop-up menu.
3.
In the Target Project dialog, select SiebelAdapterRPCSOASample as the matching resource.
4.
Click the OK button.
Task F Importing Resources to the TIBCO Designer Project
To import resources to the newly created TIBCO Designer Project, follow these steps:
1.
2.
Select File > Import... from the Menu to open the Import dialog.
3.
Expand the General folder and select File System, and then click the Next button.
4.
Click the Browse button to locate the SOA project SiebelAdapterRPCSOASample in the From directory drop-down list, and check the schema checkbox in the left pane.
5.
Click the Finish button.
Task G Configuring the SOA Project
To configure the SOA project, follow these steps:
1.
In the Project Explorer Panel, select the SOA project SiebelAdapterRPCSOASample, expand the Composites folder, and then double-click SiebelAdapterRPCSOASample.composite to launch the Composite Editor on the right.
2.
Drag the SiebelAdapter component from the Palette to the Components column and enter SiebelAdapter as the component name.
3.
In the Properties view, click the Services tab and then click the Add button to open the Resource Picker dialog. Expand the tree in the left pane to select the appropriate adapter endpoint, and then click the Add button to add it into the Selected Adapter Endpoint pane on the right. Click the OK button and the added service will appear under the Services tab. The services pre-configured in the Adapter project SBLAdapterRPCSample are as follows:
rpcQueryBusComp — Query Siebel Business Components
rpcUPSERTBusComp — Insert or Update Siebel Business Components
rpcQueryIntComp — Query Siebel Integration Components
rpcUPSERTIntComp — Insert or Update Siebel Integration Components
rpcInvokeWorkflow — Invoke Siebel Workflow
rpcInvokeBusService — Invoke Siebel Business Service
4.
In the Project Explorer Panel, right-click the Shared Resources folder under the SiebelAdapterRPCSOASample project, select New > EMS from the pop-up menu, and then click the Finish button.
5.
a.
Double click SiebelAdapterRPCSOASample.composite under the Composite folder.
b.
c.
Click the Shared Resource Profiles tab to add the shared resource.
d.
Click the Save button to save your configuration.
6.
To configure RPC Services of different types, proceed with the following steps.
RPC Service of Query Siebel Business Components
a.
Drag a JMS Service from the Palette to the Services column and name it RPCQueryBusCompSOAP.
b.
Click the Target tab and click the radio button next to SiebelAdapter->rpcQueryBusComp to draw a wire between the RPCQueryBusCompSOAP service and the SiebelAdapter component.
c.
Click the Binding tab to add the shared resource profile in the Endpoint pane.
RPC Service of Insert or Update Siebel Business Components
a.
Drag a JMS Service from the Palette to the Services column and name it RPCUPSERTBusCompSOAP.
b.
Click the Target tab and click the radio button next to SiebelAdapter->rpcUPSERTBusComp to draw a wire between the RPCUPSERTBusCompSOAP service and the SiebelAdapter component.
c.
Click the Binding tab to add the shared resource profile in the Endpoint pane.
RPC Service of Query Siebel Integration Components
a.
Drag a JMS Service from the Palette to the Services column and name it RPCQueryIntCompSOAP.
b.
Click the Target tab and click the radio button next to SiebelAdapter->rpcQueryIntComp to draw a wire between the RPCQueryIntCompSOAP service and the SiebelAdapter component.
c.
Click the Binding tab to add the shared resource profile in the Endpoint pane.
RPC Service of Insert or Update Siebel Integration Components
Drag a JMS Service from the Palette to the Services column and name it RPCUPSERTIntCompSOAP.
Click the Target tab and click the radio button next to SiebelAdapter->rpcUPSERTIntComp to draw a wire between the RPCUPSERTIntCompSOAP service and the SiebelAdapter component.
Click the Binding tab to add the shared resource profile in the Endpoint pane.
RPC Service of Invoke Siebel Workflow
Drag a JMS Service from the Palette to the Services column and name it RPCInvokeWorkflowSOAP.
Click the Target tab and click the radio button next to SiebelAdapter->rpcInvokeWorkflow to draw a wire between the RPCInvokeWorkflowSOAP service and the SiebelAdapter component.
Click the Binding tab to add the shared resource profile in the Endpoint pane.
RPC Service of Invoke Siebel Business Service
Drag a JMS Service from the Palette to the Services column and name it RPCInvokeBusServiceSOAP.
Click the Target tab and click the radio button next to SiebelAdapter->rpcInvokeBusService to draw a wire between the RPCInvokeBusServiceSOAP service and the SiebelAdapter component.
Click the Binding tab to add the shared resource profile in the Endpoint pane.
Task H Configure the BusinessWorks Process in the TIBCO Designer Project
For different RPC service types, proceed with the following steps.
RPC Service of Query Siebel Business Components
1.
Create a process SOAP_rpcQueryBusComp.process under the TIBCO Designer project SiebelAdapterRPCBWSample.
2.
Double click SOAP_rpcQueryBusComp.process and create a SOAP Request Reply activity for the process.
3.
Click the SOAP Request Reply activity to open the Configuration View panel. Configure Service in this panel.
4.
Connect the Start, SOAP Request Reply, and End activities.
RPC Service of Insert or Update Siebel Business Components
1.
Create a process SOAP_rpcUPSERTBusComp.process under the TIBCO Designer project SiebelAdapterRPCBWSample.
2.
Double click SOAP_rpcUPSERTBusComp.process and create a SOAP Request Reply activity for the process.
3.
Click the SOAP Request Reply activity to open the Configuration View panel. Configure Service in this panel.
4.
Connect the Start, SOAP Request Reply, and End activities.
RPC Service of Query Siebel Integration Components
1.
Create a process SOAP_rpcQueryIntComp.process under the TIBCO Designer project SiebelAdapterRPCBWSample.
2.
Double click SOAP_rpcQueryIntComp.process and create a SOAP Request Reply activity for the process.
3.
Click the SOAP Request Reply activity to open the Configuration View panel. Configure Service in this panel.
4.
Connect the Start, SOAP Request Reply, and End activities.
RPC Service of Insert or Update Siebel Integration Components
1.
Create a process SOAP_rpcUPSERTIntComp.process under the TIBCO Designer project SiebelAdapterRPCBWSample.
2.
Double click SOAP_rpcUPSERTIntComp.process and create a SOAP Request Reply activity for the process.
3.
Click the SOAP Request Reply activity to open the Configuration View panel. Configure Service in this panel.
4.
Connect the Start, SOAP Request Reply, and End activities.
RPC Invoke Siebel Workflow
1.
Create a process SOAP_rpcInvokeWorkflow.process under the TIBCO Designer project SiebelAdapterRPCBWSample.
2.
Double click SOAP_rpcInvokeWorkflow.process and create a SOAP Request Reply activity for the process.
3.
Click the SOAP Request Reply activity to open the Configuration View panel. Configure Service in this panel.
4.
Connect the Start, SOAP Request Reply, and End activities.
RPC Invoke Siebel Business Service
1.
Create a process SOAP_rpcInvokeBusService.process under the TIBCO Designer project SiebelAdapterRPCBWSample.
2.
Double click SOAP_rpcInvokeBusService.process and create a SOAP Request Reply activity for the process.
3.
Click the SOAP Request Reply activity to open the Configuration View panel. Configure Service in this panel.
4.
Connect the Start, SOAP Request Reply and End activities.
Task I Creating the Service Assembly
To create the service assembly, follow these steps:
1.
In the Project Explorer, select the SiebelAdapterRPCSOASample project.
2.
Right-click the composite file SiebelAdapterRPCSOASample.composite, and then select Service Assembly from the pop-up menu. Save the composite if prompted.
3.
Expand the Deployment Packages folder, right-click SiebelAdapterRPCSOASample.saf, and then select Build Archive from the pop-up menu. Save the file if prompted.
After completing the building process, you can see a SiebelAdapterRPCSOASample.zip file which has been created in the Deployment packages folder. This is the SA Project to be deployed to TIBCO ActiveMatrix Administrator.

Copyright © TIBCO Software Inc. All Rights Reserved