Creating the withdraw operation

The withdraw operation has the following input and output:

Follow these steps to add the withdraw operation to the Bank interface:

  1. Switch to the BankInterface editor.
  2. Click the Add Request Response Operation button Add Request Response Operation.
  3. Switch to the Properties view.
  4. In the details section, click the Description tab.
  5. In the Name field, type withdraw.
  6. Switch to the BankInterface editor.
  7. Click the Add Input button Add Input.
  8. Switch to the Properties view.
  9. In the details section, click the Description tab.
  10. In the Name field, type amount.
  11. In the Type list, type double.
  12. From the list, click double.
  13. Switch to the BankInterface editor.
  14. Click the Add Input button Add Input.
  15. Switch to the Properties view.
  16. In the details section, click the Description tab.
  17. In the Name field, type account. The Data Type Selection window opens.
  18. In the Filter by type, namespace, or file (? = any character, * = any String) field, type BankAccountBO.
  19. Click BankAccountBO.
  20. Click http://eMergedLibrary/com/emerged/portal - eMergedLibrary/com/emerged/portal/BankAccountBO.xsd.
  21. Click OK.
  22. In the Type list, type BankAccountBO [http://eMergedLibrary/com/emerged/portal].
  23. Switch to the BankInterface editor.
  24. Click the Add Output button Add Output.
  25. Switch to the Properties view.
  26. In the details section, click the Description tab.
  27. In the Name field, type newBalance. The Data Type Selection window opens.
  28. In the Filter by type, namespace, or file (? = any character, * = any String) field, type CashAmountBO.
  29. Click CashAmountBO.
  30. Click http://eMergedLibrary/com/emerged/portal - eMergedLibrary/com/emerged/portal/CashAmountBO.xsd.
  31. Click OK.
  32. In the Type list, type CashAmountBO [http://eMergedLibrary/com/emerged/portal].

Feedback
(C) Copyright IBM Corporation 2005. All Rights Reserved.