In BEA WebLogic Workshop 8.1, building a service-oriented architecture (SOA) is now a simple task. BEA provides a mechanism for visualizing the creation of complex business processes and services. In the following sections, I will guide you step-by-step through the process of creating a mortgage agency. Hopefully this article will give you an insight into how to build a service-oriented architecture (SOA) with the power of WebLogic Workshop.
We assume that an arbitrary number of subsystems have been generated for the process to access the payment process, and that the payment process calculates the monthly payment based on the number and terms of the loan. The agency usually deals with a large number of credit institutions in order to complete the loan. In our case, the agency will deal with the National Bank and local banks. These two organizations have Web services that we can use to get information about current lending rates. Our business processes will incorporate these services into our own logic to provide users with the most up-to-date information possible.
Begin
Before you start building your business processes, you need to build the WEB services that your business processes depend on. Our services should not only be able to return the current interest rate of the bank, but should also be able to return the name of the bank. For the purposes of this example, the current interest rate is calculated by randomly selecting a value from a statically defined interest rate table. The following steps will guide you through the steps to create the required applications, projects, and services in Workshop.
First, you need to create an empty application:
• Select File > New > Application ... and the New Application dialog box appears.
• Select Empty application and name it brokerage.
• Click Create.
The following creates a Web service project:
• Right-click the brokerage folder.
• Choose New > Project ..., and the New Project dialog box appears.
• Select Web Service Project and name it webservices.
• Click Create.
Create a national Banking service:
• Right-click the WebService folder.
• Select New > folder and name it Nationalbank.
• Right-click the Nationalbank folder.
• Select New > Web Service and the New File dialog box appears.
• Name the Web service Nationalbankservice.
• Click Create. The newly created service is displayed in the Edit pane.
• Right-click the service in the editing pane and select Add Method.
• Name the method getcurrentrate.
• Click the Source View tab.
• Modify the Web service so that it is consistent with listing 1.
• Select File > Save