# Tutorial: Designing a Purchase Order Processing System by Using AquaLogic Integrator

# Creating Business Service Endpoint for PurchaseOrderFulfillmentJPD

This chapter describes how to rebuild business service endpoints for the PurchaseOrderFulfillment JPD. This chapter discusses the following topics:

- Creating the Business Service Endpoint for PurchaseOrderFulfillmentJPD

## Creating the Business Service Endpoint for PurchaseOrderFulfillmentJPD

The business service end points are used by the ALSB proxy services to invoke the Purchase Order Fulfillment JPD for fulfilling the order.

##### To Create the Business Service Endpoint

1. Switch to ALSB perspective from your current perspective in Workspace Studio. To select ALSB perspective, in the BEA Workshop for WebLogic window menu, and click Windows > Open Perspective > Other....

Select AquaLogic Service Bus in the Open Perspective dialog box.

2. In the Project Explorer pane, select ServiceAccess, and expand Business Services.
3. Right-click BusinessServices, and select New > Business Service.
4. In the Create a new Business Service dialog box, enter the File Name as `PurchaseOrderFulfillmentJPDBS`, and click Next.
Figure 5-1 Create a Business Service

5. In the Create Business Service - General Configuration (Service Access/Business Services/) dialog box, select the WSDL Web Service Service Type, and click Browse. The Select a WSDL dialog box is displayed.
6. Select Service Access, and click Consume. In the Service Consumption dialog box, browse to ServiceAccess > Resources, and select `ServiceAccess\Resources` as the Artifact folder.
7. From the Service Resource drop-down list, select Workspace.
8. Select WebLogic Integration 10.2 from the Product Type drop-down list. The Service Consumption Status dialog box is displayed.
9. Select `UseCaseWeb/alint.process.PurchaseOrderFulfillmentJPD`, and click OK.

Figure 5-2 shows the Service Consumption dialog box.

Figure 5-2 Service Consumption

Click OK in the Service Consumption Status dialog box.

10. In the Select a WSDL dialog box, expand Resources, select and expand `PurchaseOrderFulfillmentJPDContract.wsdl`, and select PurchaseOrderFulfillmentJPDSoap(port), click OK, as shown in Figure 5-2.
Figure 5-3 Select a WSDL

11. Click Next in the Create a Business Service - Transport Configuration (ServiceAccess/Business Services) dialog box, and ensure the following:

- The Protocol is set to jpd.
- The Endpoint URI is: `jpd::/UseCaseWeb/alint/process/PurchaseOrderFulfillmentJPD.jpd`. Click Add.

12. Click Next. Figure 5-4 shows the default values selected.
Figure 5-4 Selecting Protocol and Endpoint URIs

13. In the JPD Transport Configuration dialog box, accept the default values, Click Finish.

The `PurchaseOrderFulfillmentJPDBS.biz` file is created in the Business Services folder in Project Explorer. Figure 5-5 shows the business service that is created.

Figure 5-5 Business Service in Project Explorer

In this chapter, you created the business service end point to invoke the PurchaseOrderFulfillment JPD. In the next chapter, you will create a proxy service to invoke this business service end point.