Book Image

ADempiere 3.6 Cookbook

Book Image

ADempiere 3.6 Cookbook

Overview of this book

Table of Contents (16 chapters)
ADempiere 3.6 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Configuring a Web service to remove a record


Here we will see how to configure a Web service to remove a record from a table using the generic API, deleteData.

How to do it...

  1. 1. Log in to ADempiere using GardenUser/GardenUser with the GardenWorld User role.

  2. 2. Go to the Web Service Security window.

  3. 3. Click on the New Record and enter the following, as shown in the next screenshot:

    • Search Key: DeleteBPartner (choose your text)

    • Name: Delete BPartner (choose your text)

    • Web Service: Model Oriented Web Services

    • Web Service Method: Delete Data_Model Oriented Web Services

    • Table: C_BPartner_Business Partner

    • Description: <your description of service>

    • Comment/Help: <your text>

  1. 4. Go to the Web Service Parameter tab and create the following parameters, as shown in the following screenshot:

    • TableName: Set this to C_BPartner

    • RecordID: The value for this will be passed from the Web service request

    • Action: Set this to Delete

  1. 5. Go to the soapUI client and run the following SOAP...