Configuring a Web service to read a record
Now let us look at how to configure a Web service to read the newly created business partner using the generic API—readData.
How to do it...
1. Log in to ADempiere using
GardenUser/GardenUser
with theGardenWorld User
role.2. Go to the Web Service Security window.
3. Click on the New Record and enter the following, as shown in the next screenshot:
Search Key:
ReadBPartner
(choose your text)Name:
Read BPartner
(choose your text)Web Service:
Model Oriented Web Services
Web Service Method:
Read Data_Model Oriented Web Services
Table:
C_BPartner_Business Partner
Description:
<your description of service>
Comment/Help:
<your text>
4. Go to the Web Service Parameter tab and create the following parameters, as shown in the next screenshot:
TableName:
Set this toC_BPartner
RecordID:
The value for this will be passed from the Web service request. You may get theRecordID
from the response of theCreateData
service response, as...