Add the rest of the operations

You now need to create the three remaining operations, nextBook, deleteBook, readBook:

  1. In the BookLegacy.wsdl editor, right-click addBook, and then click Add Operation.

    This creates new input and output rows.

  2. The text NewOperation should be highlighted, type nextBook.
  3. In the input row, double-click parameters and type stockNo.
  4. In the input row, right-click nextBook, and then click Set Element > New Element.

    This opens the New Element dialog box.

  5. In the Name field, type stockNo, and then click OK.
  6. Click on the arrow next to the stockNo input element.

    This opens an Inline Schema editor showing the stockNo element.

  7. Right-click the stockNo element, and then click Set Type > New.

    This opens the New Type dialog box.

  8. Click Simple Type.
  9. In the Name field, type stockNo.
  10. Click OK.
    Note: The default type for the element is string.
  11. Click File > Save, and close the Inline Schema editor.
  12. In the output row, double-click parameters and change to bookReturn.
  13. In the output row, right-click nextBookResponse, and then click Set Element > Existing Element.

    This opens the Set element reference dialog box.

  14. In the Name field, type BookReturnE.
  15. In the Elements list, click BookReturnE.
  16. Click OK.

    Here we are reusing a previous element and its type.

  17. To add the remaining two operations deleteBook and readBook repeat the steps 1 through 10. At step 4, click Existing Element, and then click stockNo in the Elements list.

The completed diagram should look like this:


GUID-3AE56716-877E-4AB1-88BD-32566233320C-low.png