Processing an Order in a Purchase Order System

Creating and Configuring the WSDL Documents

The HTTP-SOAP-PO-BPEL project includes two WSDL documents, one for the inventory service, and one for the purchase order service.

Creating the InventoryService WSDL Document

The InventoryService WSDL document enables the project to check product availability.

ProcedureTo create the WSDL using the New WSDL Document wizard

  1. From the Projects window, right-click the HTTP-SOAP-PO-BPEL project and select New > WSDL Document from the pop-up menu.

    The New WSDL Document wizard appears displaying the Name and Location page.

  2. Enter InventoryService as the file name.

  3. Select Concrete WSDL Document as the WSDL Type, SOAP as the Binding, and Document Literal as the Type. Click Next.

  4. From the Page 3 of the wizard, Abstract Configuration, do the following:

    1. For Operation Name, enter isInventoryAvailable.

    2. Leave the Operation Type as the default value, Request-Response Operation.

    3. For Input, enter purchaseOrder as the Message Part Name.

    4. For the input Element or Type value, browse to and select By File -> src/purchaseOrder.xsd -> Elements -> purchaseOrder as the value.

    5. For Output, enter inventoryStatus as the Message Part Name.

    6. For the output Element or Type value, browse to and select By File -> src/inventory.xsd -> Elements -> inventory as the value.

    7. Make sure that the Generate partnerlinktype automatically checkbox is selected, and click Next.

      Graphic displays the New WSDL Document Wizard, as described
in context.
    8. From page 4 of the wizard click Finish. The new WSDL is added to the project tree in the Projects window and the WSDL Editor appears in WSDL view.

To configure the InventoryService WSDL document:

The InventoryService WSDL document uses the default SOAP WSDL properties. No changes are necessary.

Creating the POService WSDL Document

The POService WSDL document enables the project to send a purchase order.

ProcedureTo create the POService WSDL document

  1. From the Projects window, right-click the HTTP-SOAP-PO-BPEL project and select New -> WSDL Document from the pop-up menu.

  2. Enter POService as the file name.

  3. Select Concrete WSDL Document as the WSDL Type, SOAP as the Binding, and Document Literal as the Type, and click Next.

  4. From the page 3 of the wizard, Abstract Configuration, do the following:

    1. For Operation Name, enter handlePurchaseOrder.

    2. Leave the Operation Type as the default value, Request-Response Operation.

    3. For Input, enter purchaseOrder as the Message Part Name.

    4. For the input Element or Type value, browse to and select By File -> src/purchaseOrder.xsd -> Elements -> purchaseOrder as the value.

    5. For Output, enter receipt as the Message Part Name.

    6. For the output Element or Type value, browse to and select By File -> src/purchaseOrder.xsd -> Elements -> purchaseOrder as the value.

    7. Make sure that the Generate partnerlinktype automatically checkbox is selected, and click Next.

      Graphic displays the New WSDL Document Wizard dialog
box as described in context.
    8. From page 4 of the wizard, click Finish. The new WSDL is added to the project tree in the Projects window and the WSDL Editor appears in WSDL view.

To configure the POService WSDL document:

The POService WSDL document uses the default SOAP WSDL properties. No changes are necessary.