
Web services
158
f Model oriented Web services: This provides APIs based on ADempiere's data model
f eCommerce Integration Web services: Provides integration of external eCommerce
packages, such as Online Store or POS
f Openbravo POS integration Web services: Custom APIs provided for integration
with Openbravo
Out of the previously listed types, model-oriented Web services will be the focus of this
chapter. UI Web services are special services and unless you understand the ADempiere's
Application Framework, it would be very difcult for any third party integrator to understand
them and use them. Besides, the security layer has not been implemented yet in it, so it is
not recommended for production use. Openbravo services are still at the alpha stage.
Model oriented services are built on top of ADempiere's data model and provides the following
generic APIs to execute any ADempiere Web service:
f createData: For creating one record on a table
f readData: To return values from one record on a table
f queryData: To query records on a table
f getList: To get data from a list (reference list or reference table)
f updateData: To modify one record on a table
f deleteData: To delete one record from a table
f runProcess: To run a process or raise a process that starts a document workow
f setDocAction: To trigger a change in document action, that is, complete a
material receipt
In this chapter, we will look into the model oriented Web services and understand what it
takes to consume them. Since these are generic APIs, it requires us to congure the security
and our specic Web services detail in ADempiere, which will be the rst thing/process we will
cover to ensure our installation is built and congured for Web services.
For all the Web services execution, we will be using the soapUI
(http://www.eviware.com) client. So, kindly install it on your
system and keep it ready before we start. soapUI is a Web services
testing tool.
Also, the APIs require various details to be specied (for example, login details, warehouse,
language, and so on). With reference to the WSDL of the model-oriented Web services, keep
the following detail handy, as it will be useful during the execution of the Web services.