Creating the getAccounts operation
The getAccounts operation has the following input and output:
Input - customer with Customer type
Output - accounts (array) with BankAccount type
Follow these steps to add the getAccounts operation to the Bank interface:
Switch to the BankInterface editor.
Click the
Add Request Response Operation
button
.
Switch to the Properties view.
In the details section, click the
Description
tab.
In the
Name
field, type
getAccounts
.
Switch to the BankInterface editor.
Click the
Add Input
button
.
Switch to the Properties view.
In the details section, click the
Description
tab.
In the
Name
field, type
customer
. The
Data Type Selection
window opens.
In the
Filter by type, namespace, or file (? = any character, * = any String)
field, type
CustomerBO
.
Click
CustomerBO
.
Click
http://eMergedLibrary/com/emerged/portal - eMergedLibrary/com/emerged/portal/CustomerBO.xsd
.
Click
OK
.
In the
Type
list, type
CustomerBO [http://eMergedLibrary/com/emerged/portal]
.
Switch to the BankInterface editor.
Click the
Add Output
button
.
Switch to the Properties view.
In the details section, click the
Description
tab.
In the
Name
field, type
accounts
. The
Data Type Selection
window opens.
In the
Filter by type, namespace, or file (? = any character, * = any String)
field, type
BankAccountListBO
.
Click
BankAccountListBO
.
Click
http://eMergedLibrary/com/emerged/portal - eMergedLibrary/com/emerged/portal/BankAccountListBO.xsd
.
Click
OK
.
In the
Type
list, type
BankAccountListBO [http://eMergedLibrary/com/emerged/portal]
.
Parent topic:
Creating the Bank interface
Previous topic:
Creating the createAccount operation
Next topic:
Creating the deleteAccount operation