Sunday, 15 March 2015

php - Sugar CRM Soap call not working properly -


I have a CRM example of sugar and I was trying to get some data from using soap service.

Below is the code that I am using for this.

When I run the same code, sometimes it is returning the right data, sometimes it does not happen.

Can anyone tell me that the problem is this ??

Add "nusoap.php"; $ Client = new saponal ('http://asdf.net/test/urbancrm_2009_06_22/soap.php'); // Log in SugarCRM $ auth_array = array ('user_auth' = & gt; array ('user_name' = & gt; '******', 'password' = & gt; '******* '),); $ Response = $ client- & gt; Call ('Login', $ auth_array); If (! $ Response ['error'] ['number']) {// successfully logged into $ session_id = $ response ['id']; // $ response = $ client- & gt; Calls ('get_entry_list', array ('session' = & gt; $ session_id, 'module_name' = & gt; 'user', 'query' = & gt; '', 'order_by' => Offset '= & gt;', 'select_fields' = & gt; array ('id', 'USER_NAME')); $ Response = $ client- & gt; Call ('get_entry_list', array ('session' = & gt; $ session_id, 'module_name' = & gt; 'itf_Apartments', "query" => "itf_apartments_cstm.neighborhood_c = 'loop', 'order-b' = 'Gtc: '$ 2_bedroom_plus_den', 'penthouse', 'photo_c', 'building_type_c', 'neighborhood_c')); // $ response = $ client- & gt; call ('get_entry_list', array ('session' = & gt; $ Session_id, 'module_name' = & gt; 'itf_Apartments', 'query' = & gt; 'itf_apartments_cstm.urbanlux_id_c = "1 (' name ',' studio ',' variable ',' one_birdroom ',' one_border_plus _den ',' ',' order 'B' = & gt; '', 'offset' = & gt; '', 'select_fields' = & gt; two_bedroom', 'two_bedroom_plus_den', 'penthouse'))); // store id and user name as a key value pair in the array // echo "---"; Print_r ($ response); } Else {echo "else"; Print_r ($ response); }

?>

You need to change the password Before passing for certification, MD5


No comments:

Post a Comment