Creating the authenticate operation
The authenticate operation has the following input and output:
Input - customerName with string type
Output - result with boolean type
Follow these steps to add the authenticate 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
authenticate
.
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
customerName
.
In the
Type
list, type
string
.
From the list, click
string
.
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
password
.
In the
Type
list, type
string
.
From the list, click
string
.
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
result
.
In the
Type
list, type
boolean
.
From the list, click
boolean
.
From the menu, select
File > Save
(or press
Ctrl+S
).
From the menu, select
File > Close
(or press
Ctrl+F4
). The editor closes for
BankInterface
.
Parent topic:
Creating the Bank interface
Previous topic:
Creating the transfer operation