The inventory.xsd XML schema enables the BPEL Service Engine to check the current inventory for a requested item.
In the Projects window, right-click the HTTP-SOAP-PO-BPEL node and select New -> Other from the pop-up menu.
The New File Wizard appears.
In the Categories field, select XML, and in the File Types field, select XML Schema.
Click Next.
From the second page of the wizard, Name and Location, type inventory as the File Name.
Click Finish.
In the Projects window, the Process Files node now contains a subnode named inventory.xsd. The Source Editor contains a tab for the XML schema file, inventory.xsd, with the Schema view open.
From the Schema view of the inventory.xsd, right-click the Complex Type node and select Add Complex Type from the pop-up menu.
From the Add Complex Type dialog box, click OK. A complex type (newComplexType) is added to the second pane of the Schema window and a sequence node is added to the third pane of the Schema window.
From the Schema window, right-click the sequence node and select Add -> Element from the pop-up menu.
The Add Element dialog box appears.
From the Add Element dialog box, do the following:
From the Schema window, right-click the sequence node again, and select Add -> Element from the pop-up menu.
The Add Element dialog box appears.
From the Add Element dialog box, do the following:
From the Schema window, right-click the sequence node again, and select Add -> Element from the pop-up menu.
From the Add Element dialog box, do the following:
From the left pane of the Schema window, right-click the Elements node, and select Add -> Element from the pop-up menu.
From the Add Element dialog box, do the following:
From the Schema Editor toolbar, click the Validate XML button. Validation begins.
The Outlook window of the IDE displays the validation status. If any errors occur, double-click each error message to see the location of the error and make any necessary corrections. Run validation again to verify corrections.
If your validation is successful, click File -> Save All() to save your current changes.