Helena

BlogJava 联系 聚合 管理
  2 Posts :: 0 Stories :: 1 Comments :: 0 Trackbacks

2006年5月11日 #

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.

l         API file location: %SugarCRM%\oss\httpd\htdocs\SugarCRM\soap.php

l         Invoke method:

1.         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']);

2.         Call functions. PHP sample code:
$online_soapclient->call($function_name, $params);

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.

posted @ 2006-05-11 15:44 Helena 阅读(571) | 评论 (0)编辑 收藏