
Web services
186
The following is the response you will receive, indicating that the business partner has been
created in the system:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<ns1:runProcessResponse xmlns:ns1="http://3e.pl/
ADInterface">
<RunProcessResponse IsError="false" xmlns="http://3e.pl/
ADInterface">
<Summary>Created=3, Errors=0 - 21843ms</Summary>
<LogInfo/>
</RunProcessResponse>
</ns1:runProcessResponse>
</soap:Body>
</soap:Envelope>
There's more...
Another generic API, setDocAction, which is very specic to the document processes
of ADempiere, can be used to manage the document actions on any kind of ADempiere-
maintained document, for example, material receipt, purchase order, vendor invoice, and so
on. A document action can initiate a workow, send an e-mail, post accounting facts to the
books, trigger material movement, and so on. In the service request (SOAP message), you will
have to specify the recordID and the docAction (for example, prepareIt, completeIt,
voidIt, and so on). The rest of the request is straightforward.
For brevity, the detailed discussion of the workow and document actions is out of this book's
scope. However, you may refer to the following URLs to read more about them:
f http://www.adempiere.com/index.php/Workflow
f http://www.adempiere.com/index.php/HOWTO_Process_Documents
There is an important note about the setDocAction service on the
ADempiere site (http://www.adempiere.com/index.php/
Adempiere_Web_Services) that is worth mentioning so that we are
better informed:
This Web service completes documents not via workow, so it jumps
over any approval step considered in a document workow. To complete
documents using workow, it's better to use the runProcess Web service.