Creating the buy operation
The buy operation has the following input and output:
Input - inputStockTransaction with StockTransaction type
Output - outputStockTransaction with StockTransaction type
Follow these steps to add the buy operation to the Brokerage interface:
Switch to the BrokerageInterface 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
buy
.
Switch to the BrokerageInterface editor.
Click the
Add Input
button
.
Switch to the Properties view.
In the details section, click the
Description
tab.
In the
Name
field, type
inputStockTransaction
. The
Data Type Selection
window opens.
In the
Filter by type, namespace, or file (? = any character, * = any String)
field, type
StockTransactionBO
.
Click
StockTransactionBO
.
Click
http://eMergedLibrary/com/emerged/portal - eMergedLibrary/com/emerged/portal/StockTransactionBO.xsd
.
Click
OK
.
In the
Type
list, type
StockTransactionBO [http://eMergedLibrary/com/emerged/portal]
.
Switch to the BrokerageInterface editor.
Click the
Add Output
button
.
Switch to the Properties view.
In the details section, click the
Description
tab.
In the
Name
field, type
outputStockTransaction
. The
Data Type Selection
window opens.
In the
Filter by type, namespace, or file (? = any character, * = any String)
field, type
StockTransactionBO
.
Click
StockTransactionBO
.
Click
http://eMergedLibrary/com/emerged/portal - eMergedLibrary/com/emerged/portal/StockTransactionBO.xsd
.
Click
OK
.
In the
Type
list, type
StockTransactionBO [http://eMergedLibrary/com/emerged/portal]
.
Parent topic:
Creating the Brokerage interface
Previous topic:
Creating the getAccount operation
Next topic:
Creating the sell operation