SugarCRM supplies SOAP interfaces, including session management and other business related data operations, such as search, set, get, etc. Take opportunity on which we focus as an example, get_opportunity_array() and oppotunity_rby_search() are available.
API file location: %SugarCRM%\oss\httpd\htdocs\SugarCRM\soap.php
Create a SOAP client. PHP sample code:
$sugar_config['offline_server'] = "http://127.0.0.1/sugarpro/soap.php";
$online_soapclient = new nusoapclient($sugar_config['online_server']);
Call functions. PHP sample code:
In this way, other systems for example ERP can call SugarCRM's functions through SOAP by indicating the name and parameters of a certain function. That has implemented communication on one direction, that is from other systems to SugarCRM. How about the method that SugatCRM call other systems? Let's research on it further.